TITLE: Outer Product of Two Matrices?
QUESTION [25 upvotes]: 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}$$

REPLY [8 votes]: I think @davcha and @Sandu Ursu 's answers are wrong. They have calculated the Kronecker Product.
According to the definition of outer product,  the outer product of A and B should be a $2×2×2×3$ tensor. You can follow this answer to compute it using numpy.