Matrices
First a word about vectors: vectors can be thought of as points in a system of coordinates such as (x, y). That is a simple row vector. As a column vector it would be written
Matrices have two dimensions. Matrices are usually square arrays of integers. A matrix transforms or maps a column vector by multiplying the coordinates by one row at a time, thus:
Composition of Matrices
We can combine matrices by multiplying the columns of the second (B, say) by the rows of the first (A, say), thus:
-
A11 | A12 | A13 |
A21 | A22 | A23 |
A31 | A32 | A33 |
- ×
-
B11 | B12 | B13 |
B21 | B22 | B23 |
B31 | B32 | B33 |
- =
-
(A11*B11 + A12*B21 + A13*B31) |
(A11*B12 + A12*B22 + A13*B32) |
(A11*B13 + A12*B23 + A13*B33) |
(A21*B11 + A22*B21 + A23*B31) |
(A21*B12 + A22*B22 + A23*B32) |
(A21*B13 + A22*B23 + A23*B33) |
(A31*B11 + A32*B21 + A33*B31) |
(A31*B12 + A32*B22 + A33*B32) |
(A31*B13 + A32*B23 + A33*B33) |
Every term of the result is the sum of n row-term × column-term multiplications, where n is the dimension of the matrices.
Math Page