diff options
author | 2008-01-06 16:35:21 +0000 | |
---|---|---|
committer | 2008-01-06 16:35:21 +0000 | |
commit | 84934ea217eb327ba0e3c357b3c68ab0e22d5160 (patch) | |
tree | 517efc9702ac2e448763e45f04e8906e86ebb1d1 /Eigen/src/Core/Sum.h | |
parent | aaf889e72b005110530fb4252fb0858c2ec733de (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.h | 6 |
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(); } |