def reformat(array):
 return np.array(array, dtype=np.float32, order='F')

def reformat ( array ) : return np . array ( array , dtype = np . float32 , order = 'F' )
returns array as a float32 array in fortran order .