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. |
Definition at line 36 of file SparseCholesky.h.
template<typename Scalar_ , int Uplo = Eigen::Lower, int Flags = Eigen::ColMajor, typename StorageIndex = int>
template<typename Derived >
Constructor to create the matrix operation object.
- Parameters
-
mat | An Eigen sparse matrix object, whose type can be Eigen::SparseMatrix<Scalar, ...> or its mapped version Eigen::Map<Eigen::SparseMatrix<Scalar, ...> > . |
Definition at line 64 of file SparseCholesky.h.