aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Geometry/OrthoMethods.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-02-26 10:09:23 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-02-26 10:09:23 +0000
commit170128770a2c934e9af8cda3642e3fbd44048668 (patch)
tree6cb2265bea53eee06f911622741be5778a63cf0b /Eigen/src/Geometry/OrthoMethods.h
parent91af389a9a39deac44a663a1467654ba7874bc93 (diff)
compilation fix + test orho methods for complex
Diffstat (limited to 'Eigen/src/Geometry/OrthoMethods.h')
-rw-r--r--Eigen/src/Geometry/OrthoMethods.h2
1 files changed, 1 insertions, 1 deletions
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;