From a7ed998d523287e790142f4d3ff3d7f8e37e4d17 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 4 Sep 2009 10:05:22 +0200 Subject: [PATCH] bug fix in novel makeGivens for real --- Eigen/src/Jacobi/Jacobi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Jacobi/Jacobi.h b/Eigen/src/Jacobi/Jacobi.h index 7fd57ed5f..3905f4d8f 100644 --- a/Eigen/src/Jacobi/Jacobi.h +++ b/Eigen/src/Jacobi/Jacobi.h @@ -233,7 +233,7 @@ void PlanarRotation::makeGivens(const Scalar& p, const Scalar& q, Scalar m_s = qq) + else if(ei_abs(p) > ei_abs(q)) { Scalar t = q/p; Scalar u = ei_sqrt(Scalar(1) + ei_abs2(t)); @@ -250,7 +250,7 @@ void PlanarRotation::makeGivens(const Scalar& p, const Scalar& q, Scalar if(q