Add doc for parallel_vectorize_from_func.
Add FunctionAlreadyExists exception.
This commit is contained in:
parent
c6d5538ead
commit
9ccc6782c7
2 changed files with 11 additions and 2 deletions
|
|
@ -410,6 +410,12 @@ else:
|
|||
|
||||
|
||||
def parallel_vectorize_from_func(lfunc, engine=None):
|
||||
'''create ufunc from a llvm.core.Function
|
||||
|
||||
If engine is given, return a function object which can be called
|
||||
from python. (This needs Jay's numpy.fromfunc).
|
||||
Otherwise, return the specialized ufunc as a llvm.core.Function
|
||||
'''
|
||||
fntype = lfunc.type.pointee
|
||||
def_spuf = SpecializedParallelUFunc(ParallelUFuncPlatform(num_thread=2),
|
||||
UFuncCoreGeneric(fntype),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue