aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Sum.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-01-06 16:35:21 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-01-06 16:35:21 +0000
commit84934ea217eb327ba0e3c357b3c68ab0e22d5160 (patch)
tree517efc9702ac2e448763e45f04e8906e86ebb1d1 /Eigen/src/Core/Sum.h
parentaaf889e72b005110530fb4252fb0858c2ec733de (diff)
- move: DerivedTraits becomes MatrixBase::Traits
- the static constants are private again in the Derived classes - more documentation and code snippets - new isDiagonal() method
Diffstat (limited to 'Eigen/src/Core/Sum.h')
-rw-r--r--Eigen/src/Core/Sum.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/Sum.h b/Eigen/src/Core/Sum.h
index 365c23810..b9b35cdca 100644
--- a/Eigen/src/Core/Sum.h
+++ b/Eigen/src/Core/Sum.h
@@ -41,10 +41,10 @@ template<typename Lhs, typename Rhs> class Sum : NoOperatorEquals,
assert(lhs.rows() == rhs.rows() && lhs.cols() == rhs.cols());
}
- static const int RowsAtCompileTime = Lhs::RowsAtCompileTime,
- ColsAtCompileTime = Rhs::ColsAtCompileTime;
-
private:
+ static const int RowsAtCompileTime = Lhs::Traits::RowsAtCompileTime,
+ ColsAtCompileTime = Rhs::Traits::ColsAtCompileTime;
+
const Sum& _ref() const { return *this; }
int _rows() const { return m_lhs.rows(); }
int _cols() const { return m_lhs.cols(); }