Class CholeskyDecompositionFunctions
The Cholesky decomposition of a symmetric matrix, and the solve it gives.
public static class CholeskyDecompositionFunctions
- Inheritance
-
CholeskyDecompositionFunctions
- Inherited Members
Methods
CholeskyDecomposition(Matrix, bool)
The lower-triangular L of the Cholesky decomposition S = L·Lᵀ of a symmetric positive definite matrix; with
flexible, of a positive semi-definite one too, a non-positive pivot read as 0.
public static Matrix CholeskyDecomposition(Matrix m, bool flexible = false)
Parameters
Returns
- Matrix
A new lower-triangular matrix.
Exceptions
- ArgumentException
misn't square, or isn't positive definite andflexibleis false.
CholeskySolveFor(Matrix, Vector)
The solution x of L·Lᵀ·x = b, for the lower-triangular L of a Cholesky decomposition: forward, then backward substitution.
public static Vector CholeskySolveFor(Matrix L, Vector b)
Parameters
Returns
- Vector
A new vector.
Exceptions
- ArgumentException
L isn't square of b's size.