From a76fbbf39777827200455477a9e3557b6063913f Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 6 Nov 2012 15:25:50 +0100 Subject: Fix bug #314: - remove most of the metaprogramming kung fu in MathFunctions.h (only keep functions that differs from the std) - remove the overloads for array expression that were in the std namespace --- Eigen/src/Householder/Householder.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Eigen/src/Householder') diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h index 3f64b7dde..b7cfa9b2b 100644 --- a/Eigen/src/Householder/Householder.h +++ b/Eigen/src/Householder/Householder.h @@ -67,6 +67,9 @@ void MatrixBase::makeHouseholder( Scalar& tau, RealScalar& beta) const { + using std::sqrt; + using internal::conj; + EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart) VectorBlock tail(derived(), 1, size()-1); @@ -81,11 +84,11 @@ void MatrixBase::makeHouseholder( } else { - beta = internal::sqrt(internal::abs2(c0) + tailSqNorm); + beta = sqrt(internal::abs2(c0) + tailSqNorm); if (internal::real(c0)>=RealScalar(0)) beta = -beta; essential = tail / (c0 - beta); - tau = internal::conj((beta - c0) / beta); + tau = conj((beta - c0) / beta); } } -- cgit v1.2.3