[Numpy-discussion] matrix operation

gerardob gberbeglia@gmail....
Wed Mar 17 13:47:41 CDT 2010

Let A and B be two n x n matrices.

I would like to have another n x n  matrix C such that
C_ij = min {A_ij, B_ij}

A = numpy.array([[2,3],[10,12]])
B = numpy.array([[1,4],[9,13]])


C = [[1,3],[9,12]]

The function min(axis) of numpy seems to be only unary.


View this message in context: http://old.nabble.com/matrix-operation-tp27936387p27936387.html
Sent from the Numpy-discussion mailing list archive at Nabble.com.

More information about the NumPy-Discussion mailing list