def farray(ptr, shape, dtype=None):
 if (not isinstance(shape, utils.INT_TYPES)):
  shape = shape[::(-1)]
 return carray(ptr, shape, dtype).T

def farray ( ptr , shape , dtype = None ) : if ( not isinstance ( shape , utils . INT_TYPES ) ) : shape = shape [ : : ( - 1 ) ] return carray ( ptr , shape , dtype ) . T
return a numpy array view over the data pointed to by *ptr* with the given *shape* .