Suppose I have a matrix B, where its elements are b_ij(i-th row, j-th column).
I have another matrix U, where its columns are u_j(j-th column).
How can I multiply each b_ij with respect to column u_j in U, then sum up all the results in each row of B? (that is, $ \sum b_{ij}u_j $ for each i)
Thanks.