![]() |
Prusa Slicer 2.6.0
|
Sparse QR factorization based on SuiteSparseQR library. More...
#include <src/eigen/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h>
Inheritance diagram for Eigen::SPQR< _MatrixType >:
Collaboration diagram for Eigen::SPQR< _MatrixType >:Public Types | |
| enum | { ColsAtCompileTime = Dynamic , MaxColsAtCompileTime = Dynamic } |
| typedef _MatrixType::Scalar | Scalar |
| typedef _MatrixType::RealScalar | RealScalar |
| typedef SuiteSparse_long | StorageIndex |
| typedef SparseMatrix< Scalar, ColMajor, StorageIndex > | MatrixType |
| typedef Map< PermutationMatrix< Dynamic, Dynamic, StorageIndex > > | PermutationType |
Public Member Functions | |
| SPQR () | |
| SPQR (const _MatrixType &matrix) | |
| ~SPQR () | |
| void | SPQR_free () |
| void | compute (const _MatrixType &matrix) |
| Index | rows () const |
| Index | cols () const |
| template<typename Rhs , typename Dest > | |
| void | _solve_impl (const MatrixBase< Rhs > &b, MatrixBase< Dest > &dest) const |
| const MatrixType | matrixR () const |
| SPQRMatrixQReturnType< SPQR > | matrixQ () const |
| Get an expression of the matrix Q. | |
| PermutationType | colsPermutation () const |
| Get the permutation that was applied to columns of A. | |
| Index | rank () const |
| void | setSPQROrdering (int ord) |
| Set the fill-reducing ordering method to be used. | |
| void | setPivotThreshold (const RealScalar &tol) |
| Set the tolerance tol to treat columns with 2-norm < =tol as zero. | |
| cholmod_common * | cholmodCommon () const |
| ComputationInfo | info () const |
| Reports whether previous computation was successful. | |
| 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 |
| void | _solve_impl (const SparseMatrixBase< Rhs > &b, SparseMatrixBase< Dest > &dest) const |
Protected Types | |
| typedef SparseSolverBase< SPQR< _MatrixType > > | Base |
Protected Attributes | |
| bool | m_analysisIsOk |
| bool | m_factorizationIsOk |
| bool | m_isRUpToDate |
| ComputationInfo | m_info |
| int | m_ordering |
| int | m_allow_tol |
| RealScalar | m_tolerance |
| cholmod_sparse * | m_cR |
| MatrixType | m_R |
| StorageIndex * | m_E |
| cholmod_sparse * | m_H |
| StorageIndex * | m_HPinv |
| cholmod_dense * | m_HTau |
| Index | m_rank |
| cholmod_common | m_cc |
| bool | m_useDefaultThreshold |
| Index | m_rows |
| bool | m_isInitialized |
Friends | |
| template<typename , typename > | |
| struct | SPQR_QProduct |
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<> |
\implsparsesolverconcept
|
protected |
| typedef SparseMatrix<Scalar, ColMajor, StorageIndex> Eigen::SPQR< _MatrixType >::MatrixType |
| typedef Map<PermutationMatrix<Dynamic, Dynamic, StorageIndex> > Eigen::SPQR< _MatrixType >::PermutationType |
| typedef _MatrixType::RealScalar Eigen::SPQR< _MatrixType >::RealScalar |
| typedef _MatrixType::Scalar Eigen::SPQR< _MatrixType >::Scalar |
| typedef SuiteSparse_long Eigen::SPQR< _MatrixType >::StorageIndex |
| anonymous enum |
|
inline |
References Eigen::SPQR< _MatrixType >::m_cc.
|
inlineexplicit |
References Eigen::SPQR< _MatrixType >::compute(), and Eigen::SPQR< _MatrixType >::m_cc.
Here is the call graph for this function:
|
inline |
References Eigen::SPQR< _MatrixType >::m_cc, and Eigen::SPQR< _MatrixType >::SPQR_free().
Here is the call graph for this function:
|
inline |
References Eigen::SPQR< _MatrixType >::cols(), eigen_assert, Eigen::SPQR< _MatrixType >::m_E, Eigen::SPQR< _MatrixType >::m_info, Eigen::SparseSolverBase< SPQR< _MatrixType > >::m_isInitialized, Eigen::SPQR< _MatrixType >::matrixQ(), Eigen::SPQR< _MatrixType >::matrixR(), Eigen::SPQR< _MatrixType >::rank(), Eigen::DenseBase< Derived >::setZero(), and Eigen::Success.
Here is the call graph for this function:
|
inlineinherited |
|
inline |
|
inline |
Get the number of columns of the input matrix.
References Eigen::SPQR< _MatrixType >::m_cR.
Referenced by Eigen::SPQR< _MatrixType >::_solve_impl().
Here is the caller graph for this function:
|
inline |
Get the permutation that was applied to columns of A.
References eigen_assert, Eigen::SPQR< _MatrixType >::m_cR, Eigen::SPQR< _MatrixType >::m_E, and Eigen::SparseSolverBase< SPQR< _MatrixType > >::m_isInitialized.
|
inline |
References col(), Eigen::SparseMatrix< _Scalar, _Options, _StorageIndex >::cols(), Eigen::SPQR< _MatrixType >::m_cc, Eigen::SPQR< _MatrixType >::m_cR, Eigen::SPQR< _MatrixType >::m_E, Eigen::SPQR< _MatrixType >::m_H, Eigen::SPQR< _MatrixType >::m_HPinv, Eigen::SPQR< _MatrixType >::m_HTau, Eigen::SPQR< _MatrixType >::m_info, Eigen::SparseSolverBase< SPQR< _MatrixType > >::m_isInitialized, Eigen::SPQR< _MatrixType >::m_isRUpToDate, Eigen::SPQR< _MatrixType >::m_ordering, Eigen::SPQR< _MatrixType >::m_rank, Eigen::SPQR< _MatrixType >::m_rows, Eigen::SPQR< _MatrixType >::m_tolerance, Eigen::SPQR< _MatrixType >::m_useDefaultThreshold, Eigen::numext::maxi(), Eigen::SparseMatrixBase< Derived >::norm(), Eigen::NumericalIssue, Eigen::SparseMatrix< _Scalar, _Options, _StorageIndex >::rows(), Eigen::SPQR< _MatrixType >::SPQR_free(), Eigen::Success, and Eigen::viewAsCholmod().
Referenced by Eigen::SPQR< _MatrixType >::SPQR().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineinherited |
|
inlineinherited |
|
inline |
Reports whether previous computation was successful.
Success if computation was succesful, NumericalIssue if the sparse QR can not be computed References eigen_assert, Eigen::SPQR< _MatrixType >::m_info, and Eigen::SparseSolverBase< SPQR< _MatrixType > >::m_isInitialized.
|
inline |
Get an expression of the matrix Q.
Referenced by Eigen::SPQR< _MatrixType >::_solve_impl().
Here is the caller graph for this function:
|
inline |
References eigen_assert, Eigen::SPQR< _MatrixType >::m_cR, Eigen::SparseSolverBase< SPQR< _MatrixType > >::m_isInitialized, Eigen::SPQR< _MatrixType >::m_isRUpToDate, and Eigen::SPQR< _MatrixType >::m_R.
Referenced by Eigen::SPQR< _MatrixType >::_solve_impl().
Here is the caller graph for this function:
|
inline |
Gets the rank of the matrix. It should be equal to matrixQR().cols if the matrix is full-rank
References eigen_assert, Eigen::SPQR< _MatrixType >::m_cc, and Eigen::SparseSolverBase< SPQR< _MatrixType > >::m_isInitialized.
Referenced by Eigen::SPQR< _MatrixType >::_solve_impl().
Here is the caller graph for this function:
|
inline |
Get the number of rows of the input matrix and the Q matrix
References Eigen::SPQR< _MatrixType >::m_rows.
|
inline |
Set the tolerance tol to treat columns with 2-norm < =tol as zero.
References Eigen::SPQR< _MatrixType >::m_tolerance, and Eigen::SPQR< _MatrixType >::m_useDefaultThreshold.
|
inline |
Set the fill-reducing ordering method to be used.
References Eigen::SPQR< _MatrixType >::m_ordering.
|
inlineinherited |
|
inlineinherited |
|
inline |
References Eigen::SPQR< _MatrixType >::m_cc, Eigen::SPQR< _MatrixType >::m_cR, Eigen::SPQR< _MatrixType >::m_E, Eigen::SPQR< _MatrixType >::m_H, Eigen::SPQR< _MatrixType >::m_HPinv, and Eigen::SPQR< _MatrixType >::m_HTau.
Referenced by Eigen::SPQR< _MatrixType >::~SPQR(), and Eigen::SPQR< _MatrixType >::compute().
Here is the caller graph for this function:
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
mutableprotected |
Referenced by Eigen::SPQR< _MatrixType >::compute(), and Eigen::SPQR< _MatrixType >::SPQR_free().
|
mutableprotected |
Referenced by Eigen::SPQR< _MatrixType >::compute(), and Eigen::SPQR< _MatrixType >::SPQR_free().
|
mutableprotected |
Referenced by Eigen::SPQR< _MatrixType >::compute(), and Eigen::SPQR< _MatrixType >::SPQR_free().
|
mutableprotected |
|
mutableprotectedinherited |
|
mutableprotected |
Referenced by Eigen::SPQR< _MatrixType >::compute(), and Eigen::SPQR< _MatrixType >::matrixR().
|
protected |
Referenced by Eigen::SPQR< _MatrixType >::compute(), and Eigen::SPQR< _MatrixType >::setSPQROrdering().
|
mutableprotected |
Referenced by Eigen::SPQR< _MatrixType >::matrixR().
|
mutableprotected |
Referenced by Eigen::SPQR< _MatrixType >::compute().
|
protected |
Referenced by Eigen::SPQR< _MatrixType >::compute(), and Eigen::SPQR< _MatrixType >::rows().
|
protected |
Referenced by Eigen::SPQR< _MatrixType >::compute(), and Eigen::SPQR< _MatrixType >::setPivotThreshold().
|
protected |
Referenced by Eigen::SPQR< _MatrixType >::compute(), and Eigen::SPQR< _MatrixType >::setPivotThreshold().