Python Forum

Full Version: Numpy arrays and compatability with Fortran arrays
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to write some python code that will utilize a f2py fortran code


the Fortran arrays are defined like
#REAL TSFSROT(NLAT,NMOS,4)

and I am defining the python/numpy arrays like this

TSFSROT=np.zeros((NLAT,NMOS,4))

just zero filling them for now , doest that make sense