- remove Eval/EvalOMP (moving them to a disabled/ subdir in order

to preserve SVN history). They are made useless by the new
  ei_eval_unless_lazy.
- introduce a generic Eval member typedef so one can do e.g.
  T t; U u; Product<T, U>::Eval m; m = t*u;
This commit is contained in:
Benoit Jacob
2008-03-31 17:24:09 +00:00
parent cff5e3ce9c
commit e74fbfb2bc
8 changed files with 18 additions and 6 deletions

View File

@@ -86,11 +86,17 @@ template<typename T, bool value> struct ei_conditional_eval
template<typename T> struct ei_conditional_eval<T, true>
{
typedef Eval<T> Type;
typedef Matrix<typename ei_traits<T>::Scalar,
ei_traits<T>::RowsAtCompileTime,
ei_traits<T>::ColsAtCompileTime,
ei_traits<T>::Flags,
ei_traits<T>::MaxRowsAtCompileTime,
ei_traits<T>::MaxColsAtCompileTime> Type;
};
template<typename T> struct ei_eval_unless_lazy
{
typedef typename ei_conditional_eval<T, !(ei_traits<T>::Flags & LazyBit)>::Type Type;
};
#endif // EIGEN_FORWARDDECLARATIONS_H