diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-07-14 23:31:38 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-07-14 23:31:38 +0200 |
commit | cf9edd995810de7575685d1164590f06edbcab3d (patch) | |
tree | b5aee580c3f3a9156e8d348095b1763af98ad9f9 | |
parent | b6fac919985a032883a08062ee23d039b7ab1a5d (diff) |
fix compilation for non trivial types
-rw-r--r-- | Eigen/src/Householder/Householder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Householder/Householder.h b/Eigen/src/Householder/Householder.h index f943a0852..c45e6469d 100644 --- a/Eigen/src/Householder/Householder.h +++ b/Eigen/src/Householder/Householder.h @@ -65,7 +65,7 @@ void MatrixBase<Derived>::makeHouseholder( EIGEN_STATIC_ASSERT_VECTOR_ONLY(EssentialPart) VectorBlock<Derived, EssentialPart::SizeAtCompileTime> tail(derived(), 1, size()-1); - RealScalar tailSqNorm = size()==1 ? 0 : tail.squaredNorm(); + RealScalar tailSqNorm = size()==1 ? RealScalar(0) : tail.squaredNorm(); Scalar c0 = coeff(0); if(tailSqNorm == RealScalar(0) && ei_imag(c0)==RealScalar(0)) |