public final class CholeskyFactorization extends Object
The main difference with CholeskyDecomposition
is that this implementation contains a
rescaler MatrixRescaler
in order to cope with badly conditioned matrices.
Constructor and Description |
---|
CholeskyFactorization(RealMatrix matQ)
Constructor defining matrix Q, and null rescaler (to avoid rescaling)
|
CholeskyFactorization(RealMatrix matQ,
MatrixRescaler res)
Constructor defining matrix Q and rescaler
|
Modifier and Type | Method and Description |
---|---|
void |
factorize()
Calculates the Cholesky factorization with false checkSymmetry
|
void |
factorize(boolean checkSymmetry)
Cholesky factorization L of psd matrix, Q = L.LT.
|
RealMatrix |
getInverse()
Compute the inverse of the matrix.
|
RealMatrix |
getL()
Returns the matrix L of the decomposition.
|
RealMatrix |
getLT()
Returns the transpose of the matrix L of the decomposition.
|
RealMatrix |
solve(RealMatrix b)
Solver for system AX = b.
|
RealVector |
solve(RealVector b)
Solver for system AX = b.
|
public CholeskyFactorization(RealMatrix matQ) throws PatriusException
matQ
- matrix QPatriusException
- if an error occurspublic CholeskyFactorization(RealMatrix matQ, MatrixRescaler res) throws PatriusException
matQ
- the matrix to factorizeres
- a matrix rescaling implementation for balancing the factorizationPatriusException
- if an error occurspublic void factorize() throws PatriusException
PatriusException
- if an error occurspublic void factorize(boolean checkSymmetry) throws PatriusException
checkSymmetry
- check matrix symmetry?PatriusException
- if an error occurspublic RealMatrix getInverse()
public RealVector solve(RealVector b)
b
- vectorpublic RealMatrix solve(RealMatrix b)
b
- matrixpublic RealMatrix getL()
L is an lower-triangular matrix
public RealMatrix getLT()
LT is an upper-triangular matrix
Copyright © 2023 CNES. All rights reserved.