[f2py] column major versus row major storage question...
Louis Wicker
Louis.Wicker at noaa.gov
Wed Feb 9 20:18:15 EET 2005
Pearu:
you may have helped me solve a big problem - maybe. I had not
recognized the fact that the transpose IS contiguous, but not the
actual array.
I am doing output in PyTables, and the fact that the array was not
contiguous was slowing down the IO by a factor of nearly 100. I knew
something about this
was the issue, and once I transpose the array, the IO speeds up again.
But, one other issue arises:
If I do the transpose on a Numeric array, the data are contiguous as in
your example. If the array is a numarray, the transpose is NOT
contiguous. Is this the expected behavior?
Thanks again...
Lou Wicker
------------------------------------------------------------------------
----
| 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