aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/src/SparseExtra/CholmodSupportLegacy.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2011-02-25 09:02:15 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2011-02-25 09:02:15 +0100
commit4fbd78d993d29ba43708dc3e8b5b4011cbb315ce (patch)
treecd116f03a48b7530e572de83770e7c85325c8911 /unsupported/Eigen/src/SparseExtra/CholmodSupportLegacy.h
parent5dfae4524b95a82dfd57cb2073471d4179f49c6c (diff)
fix compilation with gcc 3.4
Diffstat (limited to 'unsupported/Eigen/src/SparseExtra/CholmodSupportLegacy.h')
-rw-r--r--unsupported/Eigen/src/SparseExtra/CholmodSupportLegacy.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/unsupported/Eigen/src/SparseExtra/CholmodSupportLegacy.h b/unsupported/Eigen/src/SparseExtra/CholmodSupportLegacy.h
index 530585852..e8aeafffa 100644
--- a/unsupported/Eigen/src/SparseExtra/CholmodSupportLegacy.h
+++ b/unsupported/Eigen/src/SparseExtra/CholmodSupportLegacy.h
@@ -256,7 +256,7 @@ void SparseLLT<_MatrixType,Cholmod>::compute(const _MatrixType& a)
m_cholmodFactor = cholmod_analyze(&A, &m_cholmod);
cholmod_factorize(&A, m_cholmodFactor, &m_cholmod);
- m_status = (m_status & ~SupernodalFactorIsDirty) | MatrixLIsDirty;
+ this->m_status = (this->m_status & ~Base::SupernodalFactorIsDirty) | Base::MatrixLIsDirty;
}
@@ -271,18 +271,18 @@ template<typename _MatrixType>
inline const typename SparseLLT<_MatrixType,Cholmod>::CholMatrixType&
SparseLLT<_MatrixType,Cholmod>::matrixL() const
{
- if (m_status & MatrixLIsDirty)
+ if (this->m_status & Base::MatrixLIsDirty)
{
- eigen_assert(!(m_status & SupernodalFactorIsDirty));
+ eigen_assert(!(this->m_status & Base::SupernodalFactorIsDirty));
cholmod_sparse* cmRes = cholmod_factor_to_sparse(m_cholmodFactor, &m_cholmod);
- const_cast<typename Base::CholMatrixType&>(m_matrix) =
+ const_cast<typename Base::CholMatrixType&>(this->m_matrix) =
internal::map_cholmod_sparse_to_eigen<Scalar,ColMajor,Index>(*cmRes);
free(cmRes);
- m_status = (m_status & ~MatrixLIsDirty);
+ this->m_status = (this->m_status & ~Base::MatrixLIsDirty);
}
- return m_matrix;
+ return this->m_matrix;
}
@@ -441,7 +441,7 @@ void SparseLDLT<_MatrixType,Cholmod>::compute(const _MatrixType& a)
m_cholmod.supernodal = CHOLMOD_SIMPLICIAL;
//m_cholmod.supernodal = CHOLMOD_SUPERNODAL;
// TODO
- if (m_flags & IncompleteFactorization)
+ if (this->m_flags & Base::IncompleteFactorization)
{
m_cholmod.nmethods = 1;
//m_cholmod.method[0].ordering = CHOLMOD_NATURAL;
@@ -458,7 +458,7 @@ void SparseLDLT<_MatrixType,Cholmod>::compute(const _MatrixType& a)
m_cholmodFactor = cholmod_analyze(&A, &m_cholmod);
cholmod_factorize(&A, m_cholmodFactor, &m_cholmod);
- m_status = (m_status & ~SupernodalFactorIsDirty) | MatrixLIsDirty;
+ this->m_status = (this->m_status & ~Base::SupernodalFactorIsDirty) | Base::MatrixLIsDirty;
}
@@ -472,17 +472,17 @@ template<typename _MatrixType>
inline const typename SparseLDLT<_MatrixType>::CholMatrixType&
SparseLDLT<_MatrixType,Cholmod>::matrixL() const
{
- if (m_status & MatrixLIsDirty)
+ if (this->m_status & Base::MatrixLIsDirty)
{
- eigen_assert(!(m_status & SupernodalFactorIsDirty));
+ eigen_assert(!(this->m_status & Base::SupernodalFactorIsDirty));
cholmod_sparse* cmRes = cholmod_factor_to_sparse(m_cholmodFactor, &m_cholmod);
- const_cast<typename Base::CholMatrixType&>(m_matrix) = MappedSparseMatrix<Scalar>(*cmRes);
+ const_cast<typename Base::CholMatrixType&>(this->m_matrix) = MappedSparseMatrix<Scalar>(*cmRes);
free(cmRes);
- m_status = (m_status & ~MatrixLIsDirty);
+ this->m_status = (this->m_status & ~Base::MatrixLIsDirty);
}
- return m_matrix;
+ return this->m_matrix;
}