From 170128770a2c934e9af8cda3642e3fbd44048668 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 26 Feb 2009 10:09:23 +0000 Subject: compilation fix + test orho methods for complex --- Eigen/src/Geometry/OrthoMethods.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Eigen/src/Geometry') diff --git a/Eigen/src/Geometry/OrthoMethods.h b/Eigen/src/Geometry/OrthoMethods.h index 4676474db..ab8c25ed5 100644 --- a/Eigen/src/Geometry/OrthoMethods.h +++ b/Eigen/src/Geometry/OrthoMethods.h @@ -101,7 +101,7 @@ struct ei_unitOrthogonal_selector src.cwise().abs().maxCoeff(&maxi); if (maxi==0) sndi = 1; - RealScalar invnm = RealScalar(1)/Vector2(src.coeff(sndi),src.coeff(maxi)).norm(); + RealScalar invnm = RealScalar(1)/(Vector2() << src.coeff(sndi),src.coeff(maxi)).finished().norm(); perp.coeffRef(maxi) = -ei_conj(src.coeff(sndi)) * invnm; perp.coeffRef(sndi) = ei_conj(src.coeff(maxi)) * invnm; -- cgit v1.2.3