I have read this question here which seems similar, but my question may be simpler.
I have a matrix A that is of size [N x C], and a matrix X that is of size [N x D]
For each nth row in A, compute it's outer product with the corresponding nth row in X. Each outer product will yield a matrix, of size [C x D]. Then, sum up all those matricies together to get the final matrix.
Is there a simple non-for-loop way to do this in Python?
Thanks!