the default implementation should really call evalTo

This commit is contained in:
Gael Guennebaud 2010-02-15 11:01:55 +01:00
parent d00bff91ad
commit 21d0eb3f11

View File

@ -61,7 +61,8 @@ template<typename Derived> struct AnyMatrixBase
{
// This is the default implementation,
// derived class can reimplement it in a more optimized way.
typename Dest::PlainMatrixType res(*this);
typename Dest::PlainMatrixType res(rows(),cols());
evalTo(res);
dst += res;
}
@ -70,7 +71,8 @@ template<typename Derived> struct AnyMatrixBase
{
// This is the default implementation,
// derived class can reimplement it in a more optimized way.
typename Dest::PlainMatrixType res(*this);
typename Dest::PlainMatrixType res(rows(),cols());
evalTo(res);
dst -= res;
}