- 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

@@ -356,8 +356,10 @@ template<typename Derived> class MatrixBase
template<typename NewType>
const CwiseUnaryOp<ei_scalar_cast_op<NewType>, Derived> cast() const;
const typename ei_eval_unless_lazy<Derived>::Type eval() const EIGEN_ALWAYS_INLINE;
const EvalOMP<Derived> evalOMP() const EIGEN_ALWAYS_INLINE;
const typename ei_eval_unless_lazy<Derived>::Type eval() const EIGEN_ALWAYS_INLINE
{
return typename ei_eval_unless_lazy<Derived>::Type(derived());
}
template<typename OtherDerived>
void swap(const MatrixBase<OtherDerived>& other);