Skip to content
Snippets Groups Projects
Commit 177a91a3 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Use 0.0 for zero of type double

parent efed6a9a
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ class SampleFunctional { ...@@ -47,7 +47,7 @@ class SampleFunctional {
// TODO: collinearity checks suck // TODO: collinearity checks suck
if (pg * x == pg.two_norm() * x.two_norm() && if (pg * x == pg.two_norm() * x.two_norm() &&
-(mg * x) == mg.two_norm() * x.two_norm()) { -(mg * x) == mg.two_norm() * x.two_norm()) {
ret = SmallVector(0); ret = SmallVector(0.0);
return; return;
} else if (pg * x >= 0 && mg * x >= 0) { } else if (pg * x >= 0 && mg * x >= 0) {
ret = pg; ret = pg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment