logo       

Re: Reshaing continued: msg#00042

python.numeric.general

Subject: Re: Reshaing continued



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



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise