A * B
A * B multiplies A with B. For nonscalar A and B, the number of columns of A must equal the number of rows of B. If C = A*B then the elements of C can be calculated out of the matrix elements of A and B as:
A scalar can be multiplied with a matrix of any size.
A |
B |
A * B |
5 |
3 |
15 |
-4.5 |
5.4 |
-24.3 |
2 |
[1,2;3,4] |
[2,4;6,8] |
[1,-2;-3,4] |
4 |
[4,-8;-12,16] |
[1,2,3;4,5,6] |
[1,2;3,4;5,6] |
[22,28;49,64] |
[1,2;3,4;5,6] |
[1,2,3;4,5,6] |
not allowed! |
For nonscalar A and B, the number of columns of A must equal the number of rows of B.