Now there is a compatibility condition on the matrix product \\(A \cdot B\\), which causes this product to be defined only of the shapes of \\(A\\) and \\(B\\) are compatible.

Rather than just telling you the condition, here I'll explain how derive it from your understanding of the dot product.