mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
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:
parent
4a2d6ece2e
commit
a240f83216
@ -104,7 +104,7 @@ class ProductBase : public MatrixBase<Derived>
|
|||||||
inline int cols() const { return m_rhs.cols(); }
|
inline int cols() const { return m_rhs.cols(); }
|
||||||
|
|
||||||
template<typename Dest>
|
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>
|
template<typename Dest>
|
||||||
inline void addTo(Dest& dst) const { scaleAndAddTo(dst,1); }
|
inline void addTo(Dest& dst) const { scaleAndAddTo(dst,1); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user