I have a two matrices A: (20000 by 3) and B: (3 by 20000).
I would like to perform dot product considering each row as one vector - i.e. first three elements in each row of A as one vector with three elements in each column of B as another vector. Essentially expecting a 20000 by 1 vector as result.
I am not sure how to perform this. A*B is giving matrix multiplication and result being 20000 by 20000.
Running a For loop on A(i,:)*B(:,i) gives result. But considering 20000 elements running a For loop is expensive computationally. I have many such matrices.
Any idea on how to do this?