def supported_ufunc_loop(ufunc, loop):
 from .targets import ufunc_db
 loop_sig = loop.ufunc_sig
 try:
  supported_loop = (loop_sig in ufunc_db.get_ufunc_info(ufunc))
 except KeyError:
  loop_types = [x.char for x in (loop.numpy_inputs + loop.numpy_outputs)]
  supported_types = '?bBhHiIlLqQfd'
  supported_loop = all(((t in supported_types) for t in loop_types))
 return supported_loop

def supported_ufunc_loop ( ufunc , loop ) : from . targets import ufunc_db loop_sig = loop . ufunc_sig try : supported_loop = ( loop_sig in ufunc_db . get_ufunc_info ( ufunc ) ) except KeyError : loop_types = [ x . char for x in ( loop . numpy_inputs + loop . numpy_outputs ) ] supported_types = '?bBhHiIlLqQfd' supported_loop = all ( ( ( t in supported_types ) for t in loop_types ) ) return supported_loop
return whether the *loop* for the *ufunc* is supported -in nopython- .