Get rid of GeneralProduct for outer-products, and get rid of ScaledProduct

This commit is contained in:
Gael Guennebaud
2014-02-21 16:27:24 +01:00
parent af31b6c37a
commit 728c3d2cb9
3 changed files with 66 additions and 11 deletions

View File

@@ -174,6 +174,7 @@ class ProductBase : public MatrixBase<Derived>
mutable PlainObject m_result;
};
#ifndef EIGEN_TEST_EVALUATORS
// here we need to overload the nested rule for products
// such that the nested type is a const reference to a plain matrix
namespace internal {
@@ -263,6 +264,8 @@ class ScaledProduct
Scalar m_alpha;
};
#endif // EIGEN_TEST_EVALUATORS
/** \internal
* Overloaded to perform an efficient C = (A*B).lazy() */
template<typename Derived>