IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Cholesky Decomposition. For a symmetric, positive definite matrix A, the Cholesky decomposition is an lower triangular matrix L so that A = L*L'. If the matrix is not symmetric or positive definite, the constructor returns a partial decomposition and sets an internal flag that may be queried by the isSPD() method. More...
Public Member Functions | |
CholeskyDecomposition (GeneralMatrix Arg) | |
Cholesky algorithm for symmetric and positive definite matrix. More... | |
virtual GeneralMatrix | GetL () |
Return triangular factor. More... | |
virtual GeneralMatrix | Solve (GeneralMatrix B) |
Solve A*X = B More... | |
CholeskyDecomposition (GeneralMatrix Arg) | |
Cholesky algorithm for symmetric and positive definite matrix. More... | |
virtual GeneralMatrix | GetL () |
Return triangular factor. More... | |
virtual GeneralMatrix | Solve (GeneralMatrix B) |
Solve A*X = B More... | |
Properties | |
virtual bool | SPD [get] |
Is the matrix symmetric and positive definite? More... | |
Private Member Functions | |
void ISerializable. | GetObjectData (SerializationInfo info, StreamingContext context) |
void ISerializable. | GetObjectData (SerializationInfo info, StreamingContext context) |
Private Attributes | |
double[][] | L |
Array for internal storage of decomposition. internal array storage. More... | |
int | n |
Row and column dimension (square matrix). matrix dimension. More... | |
bool | isspd |
Symmetric and positive definite flag. is symmetric and positive definite flag. More... | |
Cholesky Decomposition. For a symmetric, positive definite matrix A, the Cholesky decomposition is an lower triangular matrix L so that A = L*L'. If the matrix is not symmetric or positive definite, the constructor returns a partial decomposition and sets an internal flag that may be queried by the isSPD() method.
|
inline |
Cholesky algorithm for symmetric and positive definite matrix.
Arg | Square, symmetric matrix. |
References DotNetMatrix.GeneralMatrix.Array, DotNetMatrix.GeneralMatrix.ColumnDimension, DotNetMatrix.CholeskyDecomposition.n, and DotNetMatrix.GeneralMatrix.RowDimension.
|
inline |
Cholesky algorithm for symmetric and positive definite matrix.
Arg | Square, symmetric matrix. |
References DotNetMatrix.GeneralMatrix.Array, DotNetMatrix.GeneralMatrix.ColumnDimension, DotNetMatrix.CholeskyDecomposition.n, and DotNetMatrix.GeneralMatrix.RowDimension.
|
inlinevirtual |
|
inlinevirtual |
Solve A*X = B
B | A Matrix with as many rows as A and any number of columns. |
System.ArgumentException | Matrix row dimensions must agree. |
System.SystemException | Matrix is not symmetric positive definite. |
References DotNetMatrix.GeneralMatrix.ArrayCopy, DotNetMatrix.GeneralMatrix.ColumnDimension, DotNetMatrix.CholeskyDecomposition.n, and DotNetMatrix.GeneralMatrix.RowDimension.
Referenced by DotNetMatrix.test.TestMatrix.Main().
|
inlineprivate |
|
inlinevirtual |
Return triangular factor.
|
inlinevirtual |
Solve A*X = B
B | A Matrix with as many rows as A and any number of columns. |
System.ArgumentException | Matrix row dimensions must agree. |
System.SystemException | Matrix is not symmetric positive definite. |
References DotNetMatrix.GeneralMatrix.ArrayCopy, DotNetMatrix.GeneralMatrix.ColumnDimension, DotNetMatrix.CholeskyDecomposition.n, and DotNetMatrix.GeneralMatrix.RowDimension.
|
inlineprivate |
|
private |
Array for internal storage of decomposition. internal array storage.
|
private |
Row and column dimension (square matrix). matrix dimension.
Referenced by DotNetMatrix.CholeskyDecomposition.CholeskyDecomposition(), and DotNetMatrix.CholeskyDecomposition.Solve().
|
private |
Symmetric and positive definite flag. is symmetric and positive definite flag.
|
get |
Is the matrix symmetric and positive definite?