[Numpy-discussion] swaxes(0, 1) 10% faster than transpose on 2D matrix?

Mark Bakker markbak at gmail.com
Thu Jan 19 04:37:00 EST 2012


Hello List,

I noticed that swapaxes(0,1) is consistently (on my system) 10% faster than
transpose on a 2D matrix.

Any reason why? Any reason why the swapaxes algorithm is not used in
transpose?

Just wondering. Thanks,

Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120119/00cfbeba/attachment.html>


More information about the NumPy-Discussion mailing list