Skip to content

Commit ed16996

Browse files
pcaspersjenkins
authored andcommitted
Merge branch 'QPR-13378' into 'master'
QPR-13378 increase tolerance if built without eigen Closes QPR-13378 See merge request qs/oreplus!2754
1 parent 2bc9509 commit ed16996

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

QuantExt/test/stoplightbounds.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,11 @@ BOOST_AUTO_TEST_CASE(testDecorrelateOverlappingPnl) {
226226
Real corr = boost::accumulators::covariance(cov[k][l]) /
227227
std::sqrt(boost::accumulators::variance(cov[k][k]) *
228228
boost::accumulators::variance(cov[l][l]));
229+
#ifdef ORE_USE_EIGEN
229230
BOOST_CHECK_SMALL(corr, 0.01);
231+
#else
232+
BOOST_CHECK_SMALL(corr, 0.011);
233+
#endif
230234
}
231235
}
232236
}

0 commit comments

Comments
 (0)