How would I go about calculating the outer product of two matrices of 2 dimensions each? From what I can find, outer product seems to be the product of two vectors, $u$ and the transpose of another vector, $v^T$.
As an example, how would I calculate the outer product of $A$ and $B$, where $$A = \begin{pmatrix}1 & 2 \\ 3 & 4\end{pmatrix} \qquad B = \begin{pmatrix}5 & 6 & 7 \\ 8 & 9 & 10\end{pmatrix}$$