[Numpy-discussion] array reshaping?
Daniel Sheltraw
sheltraw at unm.edu
Mon Aug 22 14:39:09 CDT 2005
Hello all
Question: Lets say I have two arrays dimensioned according
to:
my_array = zeros((dim1,dim2,dim3)).astype(Complex32)
my_array_2 = zeros((dim3,dim2)).astype(Complex32)
where dim2 is not equal to dim3. Also Notice that dim2 and
dim3
are swapped in my_array_2 relative to my_array. For some
value of
dim1 I would like to write a chunk of data contained in
my_array_2
to the chunk of memory represented by my_array[dim1,:,:].
How can
I best do this?
Cheers,
Daniel
More information about the Numpy-discussion
mailing list