diff options
author | 2010-05-26 13:00:55 -0400 | |
---|---|---|
committer | 2010-05-26 13:00:55 -0400 | |
commit | a240f83216ddf690dfa205460500abba9bdcbe52 (patch) | |
tree | 7b712b46e8bd1ea70266c09f8bf6ab77753eda35 /Eigen | |
parent | 4a2d6ece2e01c0a2d9c0ff9116070d4f01890274 (diff) |
Fix to ProductBase::evalTo() in order to get matrix multiplication working for numeric
types that don't have implicit conversion from int
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/ProductBase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/ProductBase.h b/Eigen/src/Core/ProductBase.h index fbf77f2a5..611ca27c2 100644 --- a/Eigen/src/Core/ProductBase.h +++ b/Eigen/src/Core/ProductBase.h @@ -104,7 +104,7 @@ class ProductBase : public MatrixBase<Derived> inline int cols() const { return m_rhs.cols(); } template<typename Dest> - inline void evalTo(Dest& dst) const { dst.setZero(); scaleAndAddTo(dst,1); } + inline void evalTo(Dest& dst) const { dst.setZero(); scaleAndAddTo(dst,Scalar(1)); } template<typename Dest> inline void addTo(Dest& dst) const { scaleAndAddTo(dst,1); } |