From 177a91a3a420118754fa3c71180e5c59c30439c5 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Mon, 12 Sep 2011 19:03:04 +0200 Subject: [PATCH] Use 0.0 for zero of type double --- src/samplefunctional.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/samplefunctional.hh b/src/samplefunctional.hh index 7b06cbab..5b8258b8 100644 --- a/src/samplefunctional.hh +++ b/src/samplefunctional.hh @@ -47,7 +47,7 @@ class SampleFunctional { // TODO: collinearity checks suck if (pg * x == pg.two_norm() * x.two_norm() && -(mg * x) == mg.two_norm() * x.two_norm()) { - ret = SmallVector(0); + ret = SmallVector(0.0); return; } else if (pg * x >= 0 && mg * x >= 0) { ret = pg; -- GitLab