[Numpy-discussion] matrix operation

gerardo.berbeglia gberbeglia@gmail....
Fri Mar 12 12:52:32 CST 2010


Hello, 

I want to "divide" an n x n (2-dimension) numpy array matrix A by a n
(1-dimension) array d as follows:

Take n = 2.
Let A=   2 3
           1 10
and let d = [ 3 2 ]
Then i would like to have "A/d" = 2/3  3/3
                                             1/2  10/2

This is to avoid loops to improve the speed.

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



More information about the NumPy-Discussion mailing list