• In order to multiply A (r1 × c1) by B (r2 × c2), their inner indices must be equal. That is, the number of columns of A must be equal to the number of rows of B (c1 = r2). The resulting matrix has dimensions equal to the outer indices (r1, c2) of A and B.