[Numpy-discussion] numpy reference array

Matt U mpuecker@mit....
Mon Mar 18 08:42:09 CDT 2013


Chris Barker - NOAA Federal <chris.barker <at> noaa.gov> writes:
> check out "stride tricks" for clever things you can do.
> 
> But numpy does require that the data in your array be a contiguous
> block, in order, so you can't arbitrarily re-arrange it while keeping
> a view.
> 
> HTH,
>   -Chris
> 

Hi Chris, 
Thanks for the reply, you've just saved me a lot of time. I did run across
'views' but it looked like I couldn't have my data arbitrarily arranged. Thank
you for confirming that. Unfortunately my desired view does not fit a neat
striding pattern. 
Cheers,
Matt




More information about the NumPy-Discussion mailing list