Sample Input/Output
Input matrix size: 3
Input first matrix by row
1 2 4
3 -1 6
4 -6 2
Matrix m1:
1 2 4
3 -1 6
4 -6 2
Input second matrix by row
0 3 -5
1 1 -2
5 -2 7
Matrix m2:
0 3 -5
1 1 -2
5 -2 7
Product m3:
22 -3 19
29 -4 29
4 2 6
For example, 22 of the (0,0) element in m3 is obtained by
1*0 + 2*1 + 4*5 = 22
Previous slide
Next slide
Back to first slide
View graphic version