We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 401492e commit f9599ecCopy full SHA for f9599ec
cpp/tests/algo_factory.cc
@@ -292,10 +292,9 @@ TEST_CASE("fb_factory_stochastic") {
292
293
auto soln_flat = Vector<t_complex>::Map(solution.data(), solution.size());
294
double brightness = soln_flat.real().cwiseAbs().maxCoeff();
295
- SOPT_HIGH_LOG("Average intensity = {}", average_intensity);
296
double mse = (soln_flat - diagnostic.x).real().squaredNorm() / solution.size();
297
SOPT_HIGH_LOG("MSE = {}", mse);
298
- CHECK(mse <= average_intensity * 5e-2);
+ CHECK(mse <= brightness * 5e-2);
299
}
300
#endif
301
0 commit comments