Fix to ProductBase::evalTo() in order to get matrix multiplication working for numeric

types that don't have implicit conversion from int
This commit is contained in:
Manoj Rajagopalan 2010-05-26 13:00:55 -04:00
parent 4a2d6ece2e
commit a240f83216

View File

@ -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); }