Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Numpy arrays and compatability with Fortran arrays
#1
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
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Corrupted numpy arrays when save to file. DreamingInsanity 2 451 Dec-14-2019, 12:12 PM
Last Post: DreamingInsanity
  Converting set of tuples to set of 2D numpy arrays ThemePark 0 691 Aug-04-2019, 05:07 PM
Last Post: ThemePark
  numpy.copy / numpy.delete paul18fr 3 629 Jul-26-2019, 01:51 PM
Last Post: paul18fr
  Spreadsheets, Python, and Fortran pmago 3 527 May-02-2019, 12:12 PM
Last Post: buran
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 689 Apr-09-2019, 04:54 PM
Last Post: PhysChem
  numpy subtraction of two arrays devenuro 1 7,288 Sep-24-2018, 12:55 AM
Last Post: Mekire
  using two arrays to fit a third one - find coefficients vaugirard 1 774 Jul-05-2018, 10:49 PM
Last Post: Larz60+
  Arrays aka2d7 10 2,873 Jan-30-2018, 10:42 PM
Last Post: aka2d7
  Memory error while recursively adding np.arrays Afterdarkreader 0 2,225 Dec-22-2017, 04:02 PM
Last Post: Afterdarkreader
  How to append arrays within a class shaynehansen 3 1,714 Jun-28-2017, 08:49 PM
Last Post: ichabod801

Forum Jump:


Users browsing this thread: 1 Guest(s)