[Numpy-discussion] summing over more than one axis

Ian Mallett geometrian@gmail....
Thu Aug 19 09:05:16 CDT 2010


Hi,

Couldn't you do it with several sum steps?  E.g.:
result = array.sum(axis=1).sum(axis=2)

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100819/04c05fea/attachment.html 


More information about the NumPy-Discussion mailing list