CholeskyDecomposition<T>.TryDecompose Method

Attempts to perform the actual Cholesky decomposition.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public virtual bool TryDecompose()

Field Value

Boolean
false if the decomposition was successful; otherwise false.

Remarks

The decomposition isn't calculated until it is needed. When needed, it is called automatically. You never have to call Decompose() explicitly unless you want to control when the decomposition is performed.

Until Decompose() or TryDecompose() is called, either explicitly or implicitly by one of its methods or properties, you can set the Overwrite property to specify whether to overwrite or preserve the original matrix.

Unlike Decompose(), this method does not throw an exception when the matrix is not positive definite. Instead, a value of false is returned.

This method uses the LAPACK routine ?POTRF.

See Also