As the title says, I basically want the second matrix (let's call it B) to be a list of multiplications for the rows of the first matrix (which we'll call A).
How do I go about doing this? Example:
A = np.array([[[ 1., 3.]],
[[ 1., 4.]],
[[ 1., 5.]],
[[ 1., 8.]]])
B = np.array([[0],
[1],
[3],
[8]], dtype=np.int64)
And I want the result to be
C = np.array([[[0., 0.,]],
[[1., 4.]],
[[3., 15.]],
[[8., 64.]]])