From aedccbf52fac1654d81775ee71c496b2fd02d8fc Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 15 Jun 2011 09:59:10 -0400 Subject: [PATCH] back out 842881cfb1b8ece6e41c58f0466ae979e514d001 --- Eigen/src/Core/Dot.h | 3 +-- Eigen/src/Core/MatrixBase.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Eigen/src/Core/Dot.h b/Eigen/src/Core/Dot.h index f4aa76690..6e83191c5 100644 --- a/Eigen/src/Core/Dot.h +++ b/Eigen/src/Core/Dot.h @@ -159,10 +159,9 @@ MatrixBase::normalized() const * \sa norm(), normalized() */ template -inline Derived& MatrixBase::normalize() +inline void MatrixBase::normalize() { *this /= norm(); - return derived(); } //---------- implementation of other norms ---------- diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h index b75231057..e2d34d257 100644 --- a/Eigen/src/Core/MatrixBase.h +++ b/Eigen/src/Core/MatrixBase.h @@ -218,7 +218,7 @@ template class MatrixBase RealScalar blueNorm() const; RealScalar hypotNorm() const; const PlainObject normalized() const; - Derived& normalize(); + void normalize(); const AdjointReturnType adjoint() const; void adjointInPlace();