Gaussian elimination
Library · Source module
Gaussian elimination
One step of elimination at a diagonal pivot t replaces \mathbf{A} by \mathbf{A} - \mathbf{A}_{t,t}^{-1} \mathbf{A}_{:,t} \mathbf{A}_{t,:} (column t times row t), which clears row and column t. This is the operation behind the LU and Cholesky factorizations and their pivoted and randomly pivoted variants. The step is defined for any index type over any field; when the pivot is zero it does nothing. On the complement of the pivot it is the Schur complement of the pivot entry.
Elimination in the natural order, NLAlib.gaussState, is in NLAlib.Matrix.Factorizations.GaussState. Elimination of a positive semidefinite matrix along a list of pivots (the Nyström residual, randomly pivoted Cholesky) is in NLAlib.Matrix.Factorizations.Nystrom.
Main definitions
* NLAlib.eliminationStep: one elimination step at a diagonal pivot.
Main results
* NLAlib.rank_eliminationStep_add_one: a step at a nonzero pivot lowers the rank by one. * NLAlib.det_eq_apply_self_mul_det_eliminationStep: the determinant through a step. * Matrix.PosSemidef.eliminationStep, Matrix.PosSemidef.eliminationStep_le. * Matrix.IsHermitian.posDef_iff_eliminationStep: positive definiteness through a step. * Matrix.PosSemidef.foldl_eliminationStep: elimination along a list of pivots keeps a positive semidefinite matrix positive semidefinite.
Declarations
- Matrix.IsHermitian.eliminationStep
- Matrix.IsHermitian.posDef_iff_eliminationStep
- Matrix.PosSemidef.eliminationStep
- Matrix.PosSemidef.eliminationStep_apply_pivot_left
- Matrix.PosSemidef.eliminationStep_apply_pivot_right
- Matrix.PosSemidef.eliminationStep_le
- Matrix.PosSemidef.foldl_eliminationStep
- NLAlib.det_eq_apply_self_mul_det_eliminationStep
- NLAlib.eliminationStep
- NLAlib.eliminationStep_apply
- NLAlib.eliminationStep_apply_eq_zero_of_col
- NLAlib.eliminationStep_apply_eq_zero_of_row
- NLAlib.eliminationStep_apply_pivot_left
- NLAlib.eliminationStep_apply_pivot_right
- NLAlib.eliminationStep_eq_self_of_apply_self_eq_zero
- NLAlib.eliminationStep_eq_sub_smul_vecMulVec
- NLAlib.eliminationStep_mulVec
- NLAlib.eliminationStep_submatrix
- NLAlib.eliminationStep_transpose
- NLAlib.eliminationStep_zero
- NLAlib.rank_eliminationStep_add_one
- NLAlib.trace_eliminationStep