[Matrix-SIG] rotater?

Warren B. Focke Warren B. Focke" <warren@pfiesteria.gsfc.nasa.gov
Thu, 17 Jun 1999 06:54:32 -0400 (EDT)


On 17 Jun 1999, Janne Sinkkonen wrote:

> Swapping axes or transposing in general is computationally
> cheaper than it appears, because array data is not copied. 

Careful.  The data is not copied when the axes are swapped, but it is, in
many cases, copied to a contiguous temporary object before any use is made
of it.  The copying happens at c speed though, so still usually beats
python loops for speed. 

Warren Focke