Add doc for parallel_vectorize_from_func.

Add FunctionAlreadyExists exception.
This commit is contained in:
Siu Kwan Lam 2012-08-08 17:46:20 -07:00
commit 9ccc6782c7
2 changed files with 11 additions and 2 deletions

View file

@ -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),