I'm a little bit confused with matrix dot products.
I'm aware that for a matrix dot product to be defined we require that the number of columns of the first matrix is equal to the number of rows of the second matrix.
Visually it looks like the first matrix is horizontal while the second matrix is vertical.
Consider a matrix $A$ which is $3 \times 2$ and matrix $B$ which is $2 \times 3$.
The confusion occurs when I try to think of a matrix $A$ which is $2 \times 3$ that we multiply to a matrix $B$ that is $3 \times 2$. It doesn't seem to be against the rules of the matrix dot product however visually the first matrix looks vertical while the second looks horizontal.
My question is: Is this valid? If yes are they both equivalent?