A = np.array([[1,1],
[2,2],
[3,3]])
B = np.array([[[1],[2]],[[3],[4]]])
I think of B as an array of 2 matrix, what I want to achieve is to do dot product between A and each element of B, to get:
[[[3],
[6],
[9]],
[[7],
[14],
[21]]]
but if I do np.dot(A,B), I get
[[3,7],
[6,14],
[9,21]]
how to get what I want here?