add ReturnByValue pseudo expression for in-place evaluation with a

return-by-value API style (will soon use it for the transform products)
This commit is contained in:
Gael Guennebaud
2009-03-04 13:00:00 +00:00
parent 45136ac3b6
commit 6a26506341
5 changed files with 77 additions and 1 deletions

View File

@@ -630,6 +630,9 @@ template<typename Derived> class MatrixBase
template<typename Derived1, typename Derived2>
Derived& lazyAssign(const SparseProduct<Derived1,Derived2,DenseTimeSparseProduct>& product);
template<typename OtherDerived,typename OtherEvalType>
Derived& operator=(const ReturnByValue<OtherDerived,OtherEvalType>& func);
#ifdef EIGEN_MATRIXBASE_PLUGIN
#include EIGEN_MATRIXBASE_PLUGIN
#endif