[Numpy-discussion] matrix operation

Ian Mallett geometrian@gmail....
Wed Mar 17 13:52:11 CDT 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.scipy.org/pipermail/numpy-discussion/attachments/20100317/ca972516/attachment.html 


More information about the NumPy-Discussion mailing list