Commit 2ee297d6 authored by Paul's avatar Paul
Browse files

Flip sign

parent 4f00f117
...@@ -238,7 +238,7 @@ bool allclose(const R1& r1, const R2& r2, tolerance tols) ...@@ -238,7 +238,7 @@ bool allclose(const R1& r1, const R2& r2, tolerance tols)
if(n == range_distance(r2)) if(n == range_distance(r2))
{ {
auto idx = mismatch_idx(r1, r2, [&](auto x, auto y) { auto idx = mismatch_idx(r1, r2, [&](auto x, auto y) {
return abs_diff(double(x), double(y)) > tols.atol + tols.rtol * std::abs(double(y)); return abs_diff(double(x), double(y)) < tols.atol + tols.rtol * std::abs(double(y));
}); });
return idx >= range_distance(r1); return idx >= range_distance(r1);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment