template<typename Scalar_, int Uplo = Eigen::Lower, int Flags = Eigen::ColMajor, typename StorageIndex = int>
class Spectra::SparseCholesky< Scalar_, Uplo, Flags, StorageIndex >
This class defines the operations related to Cholesky decomposition on a sparse positive definite matrix, \(B=LL'\), where \(L\) is a lower triangular matrix. It is mainly used in the SymGEigsSolver generalized eigen solver in the Cholesky decomposition mode.
- Template Parameters
-
| Scalar_ | The element type of the matrix, for example, float, double, and long double. |
| Uplo | Either Eigen::Lower or Eigen::Upper, indicating which triangular part of the matrix is used. |
| Flags | Either Eigen::ColMajor or Eigen::RowMajor, indicating the storage format of the input matrix. |
| StorageIndex | The type of the indices for the sparse matrix. |
|
| template<typename Derived > |
| | SparseCholesky (const Eigen::SparseMatrixBase< Derived > &mat) |
| | Constructor to create the matrix operation object. More...
|
| |
|
Index | rows () const |
| | Returns the number of rows of the underlying matrix.
|
| |
|
Index | cols () const |
| | Returns the number of columns of the underlying matrix.
|
| |
| CompInfo | info () const |
| | Returns the status of the computation. More...
|
| |
| void | lower_triangular_solve (const Scalar *x_in, Scalar *y_out) const |
| | Performs the lower triangular solving operation \(y=L^{-1}x\). More...
|
| |
| void | upper_triangular_solve (const Scalar *x_in, Scalar *y_out) const |
| | Performs the upper triangular solving operation \(y=(L')^{-1}x\). More...
|
| |