Matrix Flashcards
1
Q
matrix
A
- a table of numbers
- by convention, dimensions are defined in row-major order
- in other words, as a “row” by “column” matrix
- ex: 2 x 3 matrix
- starts from top-left like in programming
- can be used to represent grid-like data
- can also be used to solve algebraic expressions
2
Q
augmented matrix
A
- using a matrix to represent a linear system of equations
- each row represents an equation
- each column represents coefficients of a variable or a constant (x, y, etc.)
- don’t need to explicity write x, y or =
3
Q
matrix row operations
A
- Operations that you can use when solving equations
- Produces an equivalent system of equations
- Essentially the same operations that are allowed in normal algebra
3 Operations
- Switch any two rows:
- R1 ↔ R2 : Switch row 1 and row 2
- Multiply a row by a non-zero constant (a non-zero scaler)
- 3R2 → R2 : Multiply row 2 by 3
- Add 1 row to another
- R1 + R2 → R2 : Add row 1 and 2 into row 2
4
Q
matrix addition (subtraction)
A
- Add and subtract elements in corresponding cells
- Matrices must have same dimensions; otherwise A+B is not defined
- Order doesn’t matter
5
Q
multiplying by a scalar
A
- Simply multiply every cell by some constant
6
Q
vector
A
- (for my purposes) simply a sequence of numbers
- or a matrix with one row or one column (or both, if it’s one cell)
- or an ordered set of numbers
- in this context, equvalent to a tuple, an n-tuple (a tuple with n elements) or a list
7
Q
dot product
A
- way of combining two vectors of equal length and producing one number
- defined both algebraicly and geometrically
- both are functionally equivalent
Steps (algebraic dot product)
- Take two vectors of equal length
- Multiply each term in the same position together
- Add everything up
8
Q
matrix multiplication
A
- Convention for multiplying two matrices
- Given matrices A, B
- Each cell (i, j) in final matrix is dot product of A’s row i and B’s column j
- If A, B have have respective dimentions (rA x cA) and (rB x cB)
- Can only multiply if carb, cA == rB, otherwise A*B is undefined
- Final dimensions of new matrix are rax-cub (rA x cB)
- Matrix multiplication is not commutative, the order of multiplication matters
- A*B != B*A