Matrices Flashcards
What is a diagonal matrix?
A square matrix where all elements not on the main diagonal are 0
What is a lower triangular matrix?
A square matrix that only has nonzero values on the main diagonal & below
What is an upper triangular matrix?
A square matrix that only has nonzero values on the main diagonal & above
What is a boolean or binary matrix?
A matrix that contains only 0s & 1s
What is a right or row stochastic matrix?
A square matrix where each value is between 0 & 1, inclusive, & the sum of each row is 1
What is a left or column stochastic matrix?
A square matrix where each value is between 0 & 1, inclusive, & the sum of each column is 1
How do you add matrices?
add elements in the same position of both matrices. The result will be a matrix of the same size.
What is the precondition of adding matrices?
They must be of the same order.
What is the order of a matrix?
The dimensions (rows x columns)
What is the precondition to find a dot product?
They must be vectors of the same length, but opposite orientation (one row vector & one column vector)
How do you find a dot product?
Multiply the elements of a row vector with elements with the same index of from a column vector, then add the results. The result is a scaler.
What is the precondition to find the product of 2 matrices?
The number of columns in the first matrix must equal the number of rows in the second. If you write the orders next to each other, the inner numbers must match. m x p, p x n
What is the order of the product of 2 matrices?
The resulting matrix has the same number of rows as the first matrix & the same number of columns as the second. If you write the orders next to each other, the outer numbers represent the order of the result. m x p * p x n = m x n
Practice finding the product of 2 matrices.
Did you do well? Do it on your calculator to confirm
What is a vector?
A matrix with only one row or column.