aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/ArithmeticSequence.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2017-01-18 23:16:32 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2017-01-18 23:16:32 +0100
commitf3ccbe0419cd86feb1c5f5ec624e65a8e770859a (patch)
tree946eab0d623064699c53072e1a0e0ab4b94e0d67 /Eigen/src/Core/ArithmeticSequence.h
parent15471432fe809f47e1d4986e9d81547a949e3e07 (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.h1
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; }