[f2py] column major versus row major storage question...
Louis Wicker
Louis.Wicker at noaa.gov
Wed Feb 9 00:43:23 EET 2005
All:
this is probably another one of my silly questions.....
If you create an array in Python, such as
sC = array([[1,2,3],[4,5,6]])
and print it out it shows
[[1 2 3]
[4 5 6]]
now, suppose I try and convert that array to a column major storage via
sF = fortran.as_column_major_storage(sC)
and if the data transposition is done, then should not the print out of
sF be
[[1 3 5]
[2 4 6]] ???
its not...
thanks for any help to cure my stupidity...
Lou
------------------------------------------------------------------------
----
| Dr. Louis J. Wicker
| Research Scientist, National Severe Storms Lab
| 1313 Halley Cir, Norman, OK 73069
| E-mail: Louis.Wicker at noaa.gov
| HTTP: www.nssl.noaa.gov/~lwicker
| Phone: (405) 366-0416
| Fax: (405) 366-0472
|
| "Life should NOT be a journey to the grave with the intention of
arriving
| safely in an attractive and well preserved body, but rather to skid
in
| sideways, Champagne in one hand - strawberries (and Chocolate) in
| the other, body thoroughly used up, totally worn out and screaming
| "WOO HOO...What a Ride!"
|
------------------------------------------------------------------------
----
|
| "The contents of this message are mine personally and
| do not reflect any position of the Government or NOAA."
|
------------------------------------------------------------------------
----
More information about the f2py-users
mailing list