mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Avoid leading underscore followed by cap in template identifiers
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
5ad8b9bfe2
commit
4ba872bd75
@@ -50,21 +50,21 @@ namespace Eigen {
|
||||
* 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
|
||||
*
|
||||
* \tparam _MatrixType The type of the sparse matrix A, must be a column-major SparseMatrix<>
|
||||
* \tparam MatrixType_ The type of the sparse matrix A, must be a column-major SparseMatrix<>
|
||||
*
|
||||
* \implsparsesolverconcept
|
||||
*
|
||||
*
|
||||
*/
|
||||
template<typename _MatrixType>
|
||||
class SPQR : public SparseSolverBase<SPQR<_MatrixType> >
|
||||
template<typename MatrixType_>
|
||||
class SPQR : public SparseSolverBase<SPQR<MatrixType_> >
|
||||
{
|
||||
protected:
|
||||
typedef SparseSolverBase<SPQR<_MatrixType> > Base;
|
||||
typedef SparseSolverBase<SPQR<MatrixType_> > Base;
|
||||
using Base::m_isInitialized;
|
||||
public:
|
||||
typedef typename _MatrixType::Scalar Scalar;
|
||||
typedef typename _MatrixType::RealScalar RealScalar;
|
||||
typedef typename MatrixType_::Scalar Scalar;
|
||||
typedef typename MatrixType_::RealScalar RealScalar;
|
||||
typedef SuiteSparse_long StorageIndex ;
|
||||
typedef SparseMatrix<Scalar, ColMajor, StorageIndex> MatrixType;
|
||||
typedef Map<PermutationMatrix<Dynamic, Dynamic, StorageIndex> > PermutationType;
|
||||
@@ -90,7 +90,7 @@ class SPQR : public SparseSolverBase<SPQR<_MatrixType> >
|
||||
cholmod_l_start(&m_cc);
|
||||
}
|
||||
|
||||
explicit SPQR(const _MatrixType& matrix)
|
||||
explicit SPQR(const MatrixType_& matrix)
|
||||
: m_analysisIsOk(false),
|
||||
m_factorizationIsOk(false),
|
||||
m_isRUpToDate(false),
|
||||
@@ -122,7 +122,7 @@ class SPQR : public SparseSolverBase<SPQR<_MatrixType> >
|
||||
std::free(m_HPinv);
|
||||
}
|
||||
|
||||
void compute(const _MatrixType& matrix)
|
||||
void compute(const MatrixType_& matrix)
|
||||
{
|
||||
if(m_isInitialized) SPQR_free();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user