Commit 7a626687 authored by Jens Petit's avatar Jens Petit
Browse files

test approximate equality after projection

parent 0f675515
Pipeline #167283 passed with stages
in 19 minutes and 39 seconds
...@@ -465,7 +465,7 @@ SCENARIO("Calls to functions of super class") { ...@@ -465,7 +465,7 @@ SCENARIO("Calls to functions of super class") {
THEN("Results do not change (may still be slightly different due to summation being performed in a different order)") { THEN("Results do not change (may still be slightly different due to summation being performed in a different order)") {
op.apply(volume, sino); op.apply(volume, sino);
opClone->apply(volume, sinoClone); opClone->apply(volume, sinoClone);
REQUIRE(sino == sinoClone); REQUIRE((sino-sinoClone).squaredL2Norm() == Approx(0.0).margin(1e-5));
op.applyAdjoint(sino, volume); op.applyAdjoint(sino, volume);
opClone->applyAdjoint(sino, volumeClone); opClone->applyAdjoint(sino, volumeClone);
......
Supports Markdown
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