Matrix multiplication
Matrix multiplication, along with addition and subtraction of matrices, is one of the basic operations and is used, in particular, in solving systems of linear equations that are in demand in logistics and the production sphere. Multiplication is possible only if the number of columns in the first matrix is equal to the number of rows in the second matrix.
The operation of matrix multiplication involves using all vector-rows of one matrix and vector-columns of another in the calculation process. The product involves computing the product of two matrices A and B according to a specific rule. Each intersection in the product AB must correspond to the data of matrix A rows and the data of columns B.
Thus, when filling matrix AB as a result of multiplication A by B when filling the cell X12, the values of the matrix row will be taken into account A with values a11, a12 and columns of matrix B with values b12, b22. To calculate the contents of the matrix cell AB X12 you need a11 x b12 + a12 x b22.