Sparse QR factorization based on SuiteSparseQR library. More...
Public Types | |
enum | { ColsAtCompileTime , MaxColsAtCompileTime } |
typedef SparseMatrix< Scalar, ColMajor, StorageIndex > | MatrixType |
typedef Map< PermutationMatrix< Dynamic, Dynamic, StorageIndex > > | PermutationType |
typedef MatrixType_::RealScalar | RealScalar |
typedef MatrixType_::Scalar | Scalar |
typedef SuiteSparse_long | StorageIndex |
Public Member Functions | |
template<typename Rhs , typename Dest > | |
void | _solve_impl (const MatrixBase< Rhs > &b, MatrixBase< Dest > &dest) const |
cholmod_common * | cholmodCommon () const |
Index | cols () const |
PermutationType | colsPermutation () const |
Get the permutation that was applied to columns of A. More... | |
void | compute (const MatrixType_ &matrix) |
ComputationInfo | info () const |
Reports whether previous computation was successful. More... | |
SPQRMatrixQReturnType< SPQR > | matrixQ () const |
Get an expression of the matrix Q. More... | |
const MatrixType | matrixR () const |
Index | rank () const |
Index | rows () const |
void | setPivotThreshold (const RealScalar &tol) |
Set the tolerance tol to treat columns with 2-norm < =tol as zero. More... | |
void | setSPQROrdering (int ord) |
Set the fill-reducing ordering method to be used. More... | |
SPQR () | |
SPQR (const MatrixType_ &matrix) | |
void | SPQR_free () |
~SPQR () | |
Public Member Functions inherited from Eigen::SparseSolverBase< SPQR< MatrixType_ > > | |
SPQR< MatrixType_ > & | derived () |
const SPQR< MatrixType_ > & | derived () const |
const Solve< SPQR< MatrixType_ >, Rhs > | solve (const MatrixBase< Rhs > &b) const |
const Solve< SPQR< MatrixType_ >, Rhs > | solve (const SparseMatrixBase< Rhs > &b) const |
SparseSolverBase () | |
SparseSolverBase (SparseSolverBase &&other) | |
~SparseSolverBase () | |
Protected Types | |
typedef SparseSolverBase< SPQR< MatrixType_ > > | Base |
Protected Attributes | |
int | m_allow_tol |
bool | m_analysisIsOk |
cholmod_common | m_cc |
cholmod_sparse * | m_cR |
StorageIndex * | m_E |
bool | m_factorizationIsOk |
cholmod_sparse * | m_H |
StorageIndex * | m_HPinv |
cholmod_dense * | m_HTau |
ComputationInfo | m_info |
bool | m_isRUpToDate |
int | m_ordering |
MatrixType | m_R |
Index | m_rank |
Index | m_rows |
RealScalar | m_tolerance |
bool | m_useDefaultThreshold |
Protected Attributes inherited from Eigen::SparseSolverBase< SPQR< MatrixType_ > > | |
bool | m_isInitialized |
Sparse QR factorization based on SuiteSparseQR library.
This class is used to perform a multithreaded and multifrontal rank-revealing QR decomposition of sparse matrices. The result is then used to solve linear leasts_square systems. Clearly, a QR factorization is returned such that A*P = Q*R where :
P is the column permutation. Use colsPermutation() to get it.
Q is the orthogonal matrix represented as Householder reflectors. Use matrixQ() to get an expression and matrixQ().transpose() to get the transpose. You can then apply it to a vector.
R is the sparse triangular factor. Use matrixQR() to get it as SparseMatrix. NOTE : The Index type of R is always SuiteSparse_long. You can get it with SPQR::Index
MatrixType_ | The type of the sparse matrix A, must be a column-major SparseMatrix<> |
This class follows the sparse solver concept .
Definition at line 62 of file SuiteSparseQRSupport.h.
|
protected |
Definition at line 65 of file SuiteSparseQRSupport.h.
typedef SparseMatrix<Scalar, ColMajor, StorageIndex> Eigen::SPQR< MatrixType_ >::MatrixType |
Definition at line 71 of file SuiteSparseQRSupport.h.
typedef Map<PermutationMatrix<Dynamic, Dynamic, StorageIndex> > Eigen::SPQR< MatrixType_ >::PermutationType |
Definition at line 72 of file SuiteSparseQRSupport.h.
typedef MatrixType_::RealScalar Eigen::SPQR< MatrixType_ >::RealScalar |
Definition at line 69 of file SuiteSparseQRSupport.h.
typedef MatrixType_::Scalar Eigen::SPQR< MatrixType_ >::Scalar |
Definition at line 68 of file SuiteSparseQRSupport.h.
typedef SuiteSparse_long Eigen::SPQR< MatrixType_ >::StorageIndex |
Definition at line 70 of file SuiteSparseQRSupport.h.
anonymous enum |
Enumerator | |
---|---|
ColsAtCompileTime | |
MaxColsAtCompileTime |
Definition at line 73 of file SuiteSparseQRSupport.h.
|
inline |
Definition at line 78 of file SuiteSparseQRSupport.h.
|
inlineexplicit |
Definition at line 95 of file SuiteSparseQRSupport.h.
|
inline |
Definition at line 113 of file SuiteSparseQRSupport.h.
|
inline |
Definition at line 174 of file SuiteSparseQRSupport.h.
|
inline |
|
inline |
Get the number of columns of the input matrix.
Definition at line 171 of file SuiteSparseQRSupport.h.
|
inline |
Get the permutation that was applied to columns of A.
Definition at line 218 of file SuiteSparseQRSupport.h.
|
inline |
Definition at line 127 of file SuiteSparseQRSupport.h.
|
inline |
Reports whether previous computation was successful.
Success
if computation was successful, NumericalIssue
if the sparse QR can not be computed Definition at line 250 of file SuiteSparseQRSupport.h.
|
inline |
Get an expression of the matrix Q.
Definition at line 213 of file SuiteSparseQRSupport.h.
|
inline |
Definition at line 203 of file SuiteSparseQRSupport.h.
|
inline |
Gets the rank of the matrix. It should be equal to matrixQR().cols if the matrix is full-rank
Definition at line 227 of file SuiteSparseQRSupport.h.
|
inline |
Get the number of rows of the input matrix and the Q matrix
Definition at line 166 of file SuiteSparseQRSupport.h.
|
inline |
Set the tolerance tol to treat columns with 2-norm < =tol as zero.
Definition at line 235 of file SuiteSparseQRSupport.h.
|
inline |
Set the fill-reducing ordering method to be used.
Definition at line 233 of file SuiteSparseQRSupport.h.
|
inline |
|
protected |
Definition at line 261 of file SuiteSparseQRSupport.h.
|
protected |
Definition at line 256 of file SuiteSparseQRSupport.h.
|
mutableprotected |
Definition at line 270 of file SuiteSparseQRSupport.h.
|
mutableprotected |
Definition at line 263 of file SuiteSparseQRSupport.h.
|
mutableprotected |
Definition at line 265 of file SuiteSparseQRSupport.h.
|
protected |
Definition at line 257 of file SuiteSparseQRSupport.h.
|
mutableprotected |
Definition at line 266 of file SuiteSparseQRSupport.h.
|
mutableprotected |
Definition at line 267 of file SuiteSparseQRSupport.h.
|
mutableprotected |
Definition at line 268 of file SuiteSparseQRSupport.h.
|
mutableprotected |
Definition at line 259 of file SuiteSparseQRSupport.h.
|
mutableprotected |
Definition at line 258 of file SuiteSparseQRSupport.h.
|
protected |
Definition at line 260 of file SuiteSparseQRSupport.h.
|
mutableprotected |
Definition at line 264 of file SuiteSparseQRSupport.h.
|
mutableprotected |
Definition at line 269 of file SuiteSparseQRSupport.h.
|
protected |
Definition at line 272 of file SuiteSparseQRSupport.h.
|
protected |
Definition at line 262 of file SuiteSparseQRSupport.h.
|
protected |
Definition at line 271 of file SuiteSparseQRSupport.h.