From d8396a8da003890ec0ae8eea6e2f23e899a632b7 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sun, 21 Nov 2010 10:23:06 +0100 Subject: [PATCH] fix compilation of product_mmtr --- Eigen/src/Core/ProductBase.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/ProductBase.h b/Eigen/src/Core/ProductBase.h index e2406839e..db1de7f62 100644 --- a/Eigen/src/Core/ProductBase.h +++ b/Eigen/src/Core/ProductBase.h @@ -78,7 +78,7 @@ class ProductBase : public MatrixBase public: typedef MatrixBase Base; EIGEN_DENSE_PUBLIC_INTERFACE(ProductBase) - protected: + typedef typename Lhs::Nested LhsNested; typedef typename internal::remove_all::type _LhsNested; typedef internal::blas_traits<_LhsNested> LhsBlasTraits; @@ -239,6 +239,8 @@ class ScaledProduct template inline void scaleAndAddTo(Dest& dst,Scalar alpha) const { m_prod.derived().scaleAndAddTo(dst,alpha); } + + const Scalar& alpha() const { return m_alpha; } protected: const NestedProduct& m_prod;