bugfix in operator*= (matrix product)

This commit is contained in:
Gael Guennebaud 2009-07-20 10:44:07 +02:00
parent a551107cce
commit b3ad796d40

View File

@ -300,7 +300,7 @@ template<typename OtherDerived>
inline Derived &
MatrixBase<Derived>::operator*=(const MatrixBase<OtherDerived> &other)
{
return *this = *this * other;
return derived() = derived() * other.derived();
}
/***************************************************************************