diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-11-21 10:23:06 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-11-21 10:23:06 +0100 |
commit | d8396a8da003890ec0ae8eea6e2f23e899a632b7 (patch) | |
tree | 616dabc21509a81c86fb9098279209bcc77685fe | |
parent | fb6d9ca951c255dd2acce3a737c06a7597e4e6b7 (diff) |
fix compilation of product_mmtr
-rw-r--r-- | Eigen/src/Core/ProductBase.h | 4 |
1 files changed, 3 insertions, 1 deletions
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<Derived> public: typedef MatrixBase<Derived> Base; EIGEN_DENSE_PUBLIC_INTERFACE(ProductBase) - protected: + typedef typename Lhs::Nested LhsNested; typedef typename internal::remove_all<LhsNested>::type _LhsNested; typedef internal::blas_traits<_LhsNested> LhsBlasTraits; @@ -239,6 +239,8 @@ class ScaledProduct template<typename Dest> 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; |