aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/PermutationMatrix.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-03-11 11:47:14 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-03-11 11:47:14 +0100
commitae405839652dc72935821bdaed163e7be04b3082 (patch)
tree967226a2168603bfc4655282c645cdc5ceaecc98 /Eigen/src/Core/PermutationMatrix.h
parent5806e7380026ab4ebd8f1aa4792b83cfc60f58a9 (diff)
Fix CoeffReadCost issues
Diffstat (limited to 'Eigen/src/Core/PermutationMatrix.h')
-rw-r--r--Eigen/src/Core/PermutationMatrix.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Eigen/src/Core/PermutationMatrix.h b/Eigen/src/Core/PermutationMatrix.h
index 6a26af3a5..9add80c54 100644
--- a/Eigen/src/Core/PermutationMatrix.h
+++ b/Eigen/src/Core/PermutationMatrix.h
@@ -60,7 +60,9 @@ class PermutationBase : public EigenBase<Derived>
typedef typename Traits::IndicesType IndicesType;
enum {
Flags = Traits::Flags,
+#ifndef EIGEN_TEST_EVALUATORS
CoeffReadCost = Traits::CoeffReadCost,
+#endif
RowsAtCompileTime = Traits::RowsAtCompileTime,
ColsAtCompileTime = Traits::ColsAtCompileTime,
MaxRowsAtCompileTime = Traits::MaxRowsAtCompileTime,
@@ -473,8 +475,11 @@ struct traits<PermutationWrapper<_IndicesType> >
ColsAtCompileTime = _IndicesType::SizeAtCompileTime,
MaxRowsAtCompileTime = IndicesType::MaxRowsAtCompileTime,
MaxColsAtCompileTime = IndicesType::MaxColsAtCompileTime,
- Flags = 0,
+ Flags = 0
+#ifndef EIGEN_TEST_EVALUATORS
+ ,
CoeffReadCost = _IndicesType::CoeffReadCost
+#endif
};
};
}
@@ -626,7 +631,9 @@ class Transpose<PermutationBase<Derived> >
typedef typename Derived::DenseMatrixType DenseMatrixType;
enum {
Flags = Traits::Flags,
+#ifndef EIGEN_TEST_EVALUATORS
CoeffReadCost = Traits::CoeffReadCost,
+#endif
RowsAtCompileTime = Traits::RowsAtCompileTime,
ColsAtCompileTime = Traits::ColsAtCompileTime,
MaxRowsAtCompileTime = Traits::MaxRowsAtCompileTime,