Matrix Operations

From Grad Wiki
Jump to navigation Jump to search

Matrix Addition

Matrix addition is component-wise. Thus, in order to add two matrices together, they must have the same number of rows and the same number of columns. Let and both be matrices. Then:

If instead we let both and be matrices, we would have:

Example


Scalar Multiplication

We can also scale a matrix by multiplying it by a scalar. Since a matrix's rows or columns are vectors in a vector field, the scalar will be an element of the underlying field, i.e. an element of the same type as each component of the matrix. We will often assume that our vector field is , so our scalars will be elements from .

Scalar multiplication acts by multiplying each component of the matrix by the same scalar. Letting be an element of our field and be a matrix, we have:

If we instead let be a more general matrix, we would have:

Examples