I have a (n,1) np-array, for example array([1 2 3])
that I would like to multiply element wise with a np-matrix (n,m), for example array([[1 1 1], [2 2 2], [3 3 3]])
so that I will get:
array([[1 1 1], [4 4 4], [9 9 9]])
How can I do that?
I have tried with np.multiply and np.dot.