condense array along one dimension
hi, all
Say I have a three dimension array, X, Y, Z, how can I condense into two dimensions: for example, compute 2D array with (X, Z) and summarize along Y dimensions ... is it possible?
thanks
Ruby
What do you mean by "summarize"? If for instance you want to sum along Y, just do my_array.sum(axis=1)
= Olivier
2012/1/20 Ruby Stevenson ruby185@gmail.com
hi, all
Say I have a three dimension array, X, Y, Z, how can I condense into two dimensions: for example, compute 2D array with (X, Z) and summarize along Y dimensions ... is it possible?
thanks
Ruby _______________________________________________ NumPyDiscussion mailing list NumPyDiscussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpydiscussion
I think this is exactly what I need. Thanks for your help, Olivier.
Ruby
On Fri, Jan 20, 2012 at 9:50 AM, Olivier Delalleau shish@keba.be wrote:
What do you mean by "summarize"? If for instance you want to sum along Y, just do my_array.sum(axis=1)
= Olivier
2012/1/20 Ruby Stevenson ruby185@gmail.com
hi, all
Say I have a three dimension array, X, Y, Z, how can I condense into two dimensions: for example, compute 2D array with (X, Z) and summarize along Y dimensions ... is it possible?
thanks
Ruby _______________________________________________ NumPyDiscussion mailing list NumPyDiscussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpydiscussion
NumPyDiscussion mailing list NumPyDiscussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpydiscussion
participants (2)

Olivier Delalleau

Ruby Stevenson