From 8519558d11f72e9223e9057f7ebdf66e58b6972f Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Mon, 15 Feb 2010 10:11:10 +0100 Subject: [PATCH] Workaround for compounds affected by #94. --- Eigen/src/Core/AnyMatrixBase.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Eigen/src/Core/AnyMatrixBase.h b/Eigen/src/Core/AnyMatrixBase.h index cc2f4157c..e56b56deb 100644 --- a/Eigen/src/Core/AnyMatrixBase.h +++ b/Eigen/src/Core/AnyMatrixBase.h @@ -61,8 +61,7 @@ template struct AnyMatrixBase { // This is the default implementation, // derived class can reimplement it in a more optimized way. - typename Dest::PlainMatrixType res(rows(),cols()); - evalTo(res); + typename Dest::PlainMatrixType res(*this); dst += res; } @@ -71,8 +70,7 @@ template struct AnyMatrixBase { // This is the default implementation, // derived class can reimplement it in a more optimized way. - typename Dest::PlainMatrixType res(rows(),cols()); - evalTo(res); + typename Dest::PlainMatrixType res(*this); dst -= res; }