Add support for fixed-value in symbolic expression, c++11 only for now.

This commit is contained in:
Gael Guennebaud
2017-01-19 19:25:29 +01:00
parent e84ed7b6ef
commit 7691723e34
3 changed files with 41 additions and 13 deletions

View File

@@ -60,7 +60,7 @@ static const auto end = last+1;
#else
// Using a FixedExpr<1> expression is important here to make sure the compiler
// can fully optimize the computation starting indices with zero overhead.
static const Symbolic::AddExpr<Symbolic::SymbolExpr<internal::symbolic_last_tag>,Symbolic::FixedExpr<1> > end(last+Symbolic::FixedExpr<1>());
static const Symbolic::AddExpr<Symbolic::SymbolExpr<internal::symbolic_last_tag>,Symbolic::FixedExpr<1> > end(last+fix<1>());
#endif
} // end namespace placeholders