[SciPy-user] in-place data permutation

Travis Oliphant oliphant at ee.byu.edu
Fri Feb 24 18:18:17 CST 2006

Brian Hawthorne wrote:

> Hello,
> I'm looking for an efficient implementation of permuting the positions 
> of data in
> an array which doesn't require copying the array.  Specifically, I am 
> shifting an
> array by half its length along the 0th dimension, in order to put 
> "textbook" ordered
> frequency data into the packed format expected by inverse_fft.  I'm 
> surprised
> this is not already implemented in numpy... seems like it would be a 
> common
> need.  Am I missing something obvious?



More information about the SciPy-user mailing list