ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> numpy-discussion
numpy-discussion
Re: [Numpy-discussion] rollaxis
by Pierre GM other posts by this author
Dec 13 2006 1:44PM messages near this date
Re: [Numpy-discussion] rollaxis | [Numpy-discussion] .byteswap() and copy/view dilemma
On Wednesday 13 December 2006 15:29, A. M. Archibald wrote:

>  Generate an axis-permutation tuple and use transpose:

Ah OK. It took me a little while to get it running: instead of 
s=list(A.shape)
in your example, one should read 
s=range(A.ndim)

But it does the trick, thanks a lot!

And now, double or nothing:
Samething, but with rows or columns:
For example, put a 5th column in the far right, without modifying the relative 
positions of the others.
Thanks in advance !
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
Thread:
Pierre GM
A. M. Archibald
Pierre GM
Pierre GM

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved