Thanks Michael,
This did the trick. array.flatten('F') works exactly as I need.
Thanks a lot,
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Jun 7, 2016 at 7:31 AM Heli wrote:
> Hello,
> I have a question regarding reshaping numpy array.
>
> I either have a 1D array that I need to reshape to a 3D array or a 3D
> array to reshape to a 1d numpy array.
>
> In both of these cases it is assumed that data follows x,y,z ordering.
> a
On Tue, Jun 7, 2016 at 7:25 AM, Heli wrote:
> Hello,
>
> I have a question regarding reshaping numpy array.
>
> I either have a 1D array that I need to reshape to a 3D array or a 3D array
> to reshape to a 1d numpy array.
>
> In both of these cases it is assumed that data follows x,y,z ordering.
Hello,
I have a question regarding reshaping numpy array.
I either have a 1D array that I need to reshape to a 3D array or a 3D array to
reshape to a 1d numpy array.
In both of these cases it is assumed that data follows x,y,z ordering.
and I use the following to reshape the numpy array.