def get_isnan(dtype):
 if isinstance(dtype, (types.Float, types.Complex)):
  return np.isnan
 else:
  @register_jitable
  def _trivial_isnan(x):
   return False
  return _trivial_isnan

def get_isnan ( dtype ) : if isinstance ( dtype , ( types . Float , types . Complex ) ) : return np . isnan else : @ register_jitable def _trivial_isnan ( x ) : return False return _trivial_isnan
a generic isnan() function .