Linear systems: direct and iterative methods
- •
System
- •
a linear system has the form .
- •
- •
Elimination and factorization
- •
gaussian elimination uses row operations to reach upper-triangular form, followed by back substitution.
- •
partial pivoting swaps in a large available pivot to reduce unstable division; it does not fix an ill-conditioned problem.
- •
a zero pivot may require a row exchange and does not by itself prove there is no solution.
- •
Gauss–Jordan continues to reduced row-echelon form.
- •
LU factorization can be reused for multiple right-hand sides.
- •
Cholesky applies to symmetric positive-definite matrices.
- •
the Thomas algorithm efficiently solves tridiagonal systems.
- •
- •
- •
- •
Sparse systems and preconditioning
- •
sparse matrices contain mostly zeros and can be stored and processed efficiently.
- •
preconditioning changes the system to improve iterative convergence.
- •
finite-difference discretization of differential equations often produces sparse systems.
- •
Finite differences -> approximate a second derivative from neighboring grid values
- •
Grid application -> produces a banded system.
- •
- •