BASICS OF MATRIX
Addition, scalar multiplication, subtraction and transposition [ edit ] Addition The sum A + B of two m × n matrices A and B is calculated entrywise: ( A + B ) i , j = A i , j + B i , j , 1 ≤ i ≤ m , 1 ≤ j ≤ n . For example, [ 1 3 1 1 0 0 ] + [ 0 0 5 7 5 0 ] = [ 1 + 0 3 + 0 1 + 5 1 + 7 0 + 5 0 + 0 ] = [ 1 3 6 8 5 0 ] Scalar multiplication The product c A of a number c (also called a scalar in this context) and a matrix A is computed by multiplying every entry of A by c : ( c A ) i , j = c ⋅ A i , j This operation is called scalar multiplication , but its result is not named "scalar product" to avoid confusion, since "scalar product" is often used as a synonym for " inner product ". For example: 2 ⋅ [ 1 8 − 3 4 − 2 5 ] = [ 2 ⋅ 1 2 ⋅ 8 2 ⋅ − 3 2 ⋅ 4 2 ⋅ − 2 2 ⋅ 5 ] = [ 2 16 − 6 8 − 4 10 ] Subtraction The subtraction of two m × n matr...