[Numpy-discussion] Reshaing continued
Warren Focke
focke at slac.stanford.edu
Mon Sep 13 08:33:06 EDT 2004
On Sun, 12 Sep 2004, Rob Hooft wrote:
> After a transpose, the array is normally non-contiguous, which might
> mean that repeated walk-throughs are significantly slower, and it may
> pay to make a contiguous copy first.
For many operations on noncontiguous arrays, Numeric makes a contiguous
temporary copy before performing the operation, so if you're going to do
more than one thing with a noncontiguous array, you should make a copy
yourself. Don't know if numarray works the same way, but I'd guess that
it would.
Warren Focke
More information about the NumPy-Discussion
mailing list