mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-10 23:21:47 +08:00
Remove superfluous const's (can cause warnings on some Intel compilers)
This commit is contained in:
parent
0a08d4c60b
commit
e236d3443c
@ -105,7 +105,7 @@ class WithFormat
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
const typename ExpressionType::Nested m_matrix;
|
typename ExpressionType::Nested m_matrix;
|
||||||
IOFormat m_format;
|
IOFormat m_format;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -213,7 +213,7 @@ template<typename Derived> class SparseMatrixBase
|
|||||||
|
|
||||||
if (Flags&RowMajorBit)
|
if (Flags&RowMajorBit)
|
||||||
{
|
{
|
||||||
const Nested nm(m.derived());
|
Nested nm(m.derived());
|
||||||
internal::evaluator<NestedCleaned> thisEval(nm);
|
internal::evaluator<NestedCleaned> thisEval(nm);
|
||||||
for (Index row=0; row<nm.outerSize(); ++row)
|
for (Index row=0; row<nm.outerSize(); ++row)
|
||||||
{
|
{
|
||||||
@ -232,7 +232,7 @@ template<typename Derived> class SparseMatrixBase
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const Nested nm(m.derived());
|
Nested nm(m.derived());
|
||||||
internal::evaluator<NestedCleaned> thisEval(nm);
|
internal::evaluator<NestedCleaned> thisEval(nm);
|
||||||
if (m.cols() == 1) {
|
if (m.cols() == 1) {
|
||||||
Index row = 0;
|
Index row = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user