diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-01-18 23:16:32 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-01-18 23:16:32 +0100 |
commit | f3ccbe0419cd86feb1c5f5ec624e65a8e770859a (patch) | |
tree | 946eab0d623064699c53072e1a0e0ab4b94e0d67 /Eigen/src/Core/ArithmeticSequence.h | |
parent | 15471432fe809f47e1d4986e9d81547a949e3e07 (diff) |
Add a Symbolic::FixedExpr helper expression to make sure the compiler fully optimize the usage of last and end.
Diffstat (limited to 'Eigen/src/Core/ArithmeticSequence.h')
-rw-r--r-- | Eigen/src/Core/ArithmeticSequence.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Eigen/src/Core/ArithmeticSequence.h b/Eigen/src/Core/ArithmeticSequence.h index 0f9c72e2e..5ab044442 100644 --- a/Eigen/src/Core/ArithmeticSequence.h +++ b/Eigen/src/Core/ArithmeticSequence.h @@ -378,6 +378,7 @@ public: Index size() const { return (m_last-m_first+m_incr)/m_incr; } Index operator[](Index i) const { return m_first + i * m_incr; } + Index first() const { return m_first; } const FirstType& firstObject() const { return m_first; } const LastType& lastObject() const { return m_last; } |