def guvectorize(ftylist, signature, **kws):
 if isinstance(ftylist, str):
  ftylist = [ftylist]
 def wrap(func):
  guvec = GUVectorize(func, signature, **kws)
  for fty in ftylist:
   guvec.add(fty)
  return guvec.build_ufunc()
 return wrap

def guvectorize ( ftylist , signature , ** kws ) : if isinstance ( ftylist , str ) : ftylist = [ ftylist ] def wrap ( func ) : guvec = GUVectorize ( func , signature , ** kws ) for fty in ftylist : guvec . add ( fty ) return guvec . build_ufunc ( ) return wrap
guvectorize a decorator to create numpy generialized-ufunc object from numba compiled code .