Python: Numpy Multiply each row of a array with each rows of another array
问题 I know there has been some questions about this and it should be possible with broadcasting. But somehow I dont really get how broadcasting works with adding ann additional axis. There is a similar question where each column of one array is multiplied with each column of another array here: Multiply each column with each column. In my case I want to multiply each row of the 2d arrays against each other I simply have a 3 dimensional array created as the triangular matrix: matrix = np.tril(np