def isnan(a):
 a = as_tensor_variable(a)
 if (a.dtype in discrete_dtypes):
  return alloc(numpy.asarray(False, dtype='bool'), *[a.shape[i] for i in range(a.ndim)])
 return isnan_(a)

def isnan ( a ) : a = as_tensor_variable ( a ) if ( a . dtype in discrete_dtypes ) : return alloc ( numpy . asarray ( False , dtype = 'bool' ) , * [ a . shape [ i ] for i in range ( a . ndim ) ] ) return isnan_ ( a )
y = isnan(x) returns true where x is not-a-number .