Python Forum
Numpy arrays and compatability with Fortran arrays
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 543 Mar-26-2024, 02:18 PM
Last Post: snippsat
  Pandas dataframes and numpy arrays bytecrunch 1 1,326 Oct-11-2022, 08:08 PM
Last Post: Larz60+
  Build Lapalce symbolic expression from nominator/denominator arrays Pavel_47 0 857 Oct-07-2022, 01:35 PM
Last Post: Pavel_47
  Turn list of arrays into an array of lists Cola_Reb 6 1,708 Jul-20-2022, 06:55 PM
Last Post: Cola_Reb
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 2,602 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  Write a dictionary with arrays as values into JSON format paul18fr 3 5,627 Oct-20-2021, 10:38 AM
Last Post: buran
  Arrays faster than pandas? Mark17 4 2,837 Aug-02-2021, 03:14 PM
Last Post: Mark17
  comparing floating point arrays to arrays of integers in Numpy amjass12 0 1,625 Jul-26-2021, 11:58 AM
Last Post: amjass12
  Concatenate 3D arrays paul18fr 1 2,645 Apr-09-2021, 02:49 PM
Last Post: paul18fr
  Automating to generate multiple arrays Robotguy 1 1,801 Nov-05-2020, 08:14 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020