I would like to compute v(k) = A(k, :)* B(:, k) as fast as possible (no-loops). Currently, I am doing diag(A * B) but it has unnecessary overhead of computation, and storage.
MATLAB: Fast multiplication of rows of one matrix and columns of the second matrix
matrixmatrix ma
Best Answer