[Numpy-discussion] matrix operation

Ian Mallett geometrian at gmail.com
Wed Mar 17 14:52:11 EDT 2010


>>> import numpy
>>> A = numpy.array([[2,3],[10,12]])
>>> B = numpy.array([[1,4],[9,13]])
>>> C = numpy.array([A,B])
>>> numpy.min(C,0)
array([[ 1,  3],
       [ 9, 12]])

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100317/ca972516/attachment.html>


More information about the NumPy-Discussion mailing list