[Numpy-discussion] Is this a wheel?

John J. Lee phrxy at csv.warwick.ac.uk
Thu Feb 8 03:58:23 EST 2001


On Wed, 7 Feb 2001, David P Grote wrote:

> Ravel does make a copy when the array is not contiguous. I asked this
> question before but didn't get any response - is there a way to get the
> argmax/min or max/min of a non-contiguous multi-dimensional array without
> making a contiguous copy? I use python as an interface to fortran code
> and so I am constantly dealing with arrays that are not contiguous, i.e.
> not with C ordering. Any help is appreciated.

Aren't FORTRAN arrays just stored in the reverse order to C?  Isn't this
just dealt with by having the stride lengths of your Numeric array in the
opposite order?  Or does FORTRAN sometimes allocate multidimensional
arrays with gaps in memory??  I don't see why they should not be
contiguous.


John





More information about the NumPy-Discussion mailing list