Skip to content

Commit

Permalink
relax numerical check
Browse files Browse the repository at this point in the history
The RDP test still failed occasionally.

Fixes #1162
  • Loading branch information
KrisThielemans authored Feb 19, 2023
1 parent 2e68f4d commit 420d598
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/recon_test/test_priors.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ test_Hessian_convexity_configuration(const std::string& test_name,
const double my_norm2 = std::inner_product(input->begin_all(), input->end_all(), input->begin_all(), double(0));

// test for a CONVEX function: 0 < my_sum, but we allow for some numerical error
if (this->check_if_less(-my_norm2*10E-5, my_sum)) {
// info("PASS: Computation of x^T H x = " + std::to_string(my_sum) + " > 0 and is therefore convex");
if (this->check_if_less(-my_norm2*2E-4, my_sum)) {
return true;
} else {
// print to console the FAILED configuration
Expand Down

0 comments on commit 420d598

Please sign in to comment.