mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add a Symbolic::FixedExpr helper expression to make sure the compiler fully optimize the usage of last and end.
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user