Add a .reverse() member to ArithmeticSequence.

This commit is contained in:
Gael Guennebaud
2017-01-18 11:35:27 +01:00
parent e4f8dd860a
commit 15471432fe
3 changed files with 98 additions and 14 deletions

View File

@@ -27,6 +27,8 @@ template<int N> struct fix_t {
eigen_internal_assert(int(other)==N);
}
fix_t<-N> operator-() const { return fix_t<-N>(); }
#if EIGEN_HAS_CXX14
// Needed in C++14 to allow fix<N>():
fix_t operator() () const { return *this; }