Skip to content

Commit 595c788

Browse files
damienbarkerjenkins
authored andcommitted
QPR-12100 more speed up
1 parent a7a57dc commit 595c788

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

QuantExt/test/crossassetmodel.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2565,7 +2565,7 @@ BOOST_DATA_TEST_CASE(testIrFxInfCrComMoments,
25652565

25662566
Real T = 2.0; // horizon at which we compare the moments
25672567
Size steps = static_cast<Size>(T * 10); // number of simulation steps (Euler and exact)
2568-
Size paths = 20000; // number of paths
2568+
Size paths = 10000; // number of paths
25692569

25702570
Array e_an = p_exact->expectation(0.0, p_exact->initialValues(), T);
25712571
Matrix v_an = p_exact->covariance(0.0, p_exact->initialValues(), T);
@@ -2646,7 +2646,7 @@ BOOST_DATA_TEST_CASE(testIrFxInfCrComMoments,
26462646
}
26472647
BOOST_TEST_MESSAGE("==================");
26482648

2649-
Real errTolLd[] = { 0.5E-4, 0.5E-4, 0.5E-4, 10.0E-4, 10.0E-4, 0.9E-4, 0.8E-4, 0.7E-4, 0.7E-4, 0.7E-4, 0.7E-4, 0.7E-4, 0.7E-4 };
2649+
Real errTolLd[] = { 0.5E-4, 0.5E-4, 0.5E-4, 10.0E-4, 10.0E-4, 1E-4, 1E-4, 1E-4, 1E-4, 1E-4, 1E-4, 1E-4, 1E-4 };
26502650

26512651
for (Size i = 0; i < n; ++i) {
26522652
// check expectation against analytical calculation (Euler)
@@ -2667,7 +2667,7 @@ BOOST_DATA_TEST_CASE(testIrFxInfCrComMoments,
26672667
<< e_an[i] - mean(e_eu2[i]) << " tolerance is "
26682668
<< errTolLd[i]);
26692669
}
2670-
}
2670+
}
26712671

26722672
// as above, this is a bit rough compared to the more differentiated
26732673
// test of the IR-FX model ...

0 commit comments

Comments
 (0)