Skip to content

Commit cbb0c44

Browse files
author
jenkins
committed
git subrepo pull (merge) ore
subrepo: subdir: "ore" merged: "b3703f1c00" upstream: origin: "git@gitlab.acadiasoft.net:qs/ore.git" branch: "master" commit: "381c93b332" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "73a0129"
2 parents baec4e3 + 381c93b commit cbb0c44

5 files changed

Lines changed: 19 additions & 13 deletions

File tree

Examples/Example_63/ExpectedOutput/stresstest.csv

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ CDS,eur_ester_par_and_FX,-64058.63,-64363.10,-304.47
66
CDS,eur_ester_zero,-64058.63,-64055.12,3.51
77
CDS,xccy_basis_per,-64058.63,-64996.71,-938.08
88
CDS,xccy_basis_zero,-64058.63,-63292.51,766.12
9-
Cap,eur6m_no_caplet,4988926.69,5688615.63,699688.94
10-
Cap,eur6m_par,4988926.69,5702737.92,713811.23
9+
Cap,eur6m_no_caplet,4988926.69,5710609.13,721682.44
10+
Cap,eur6m_par,4988926.69,5721598.62,732671.93
1111
Cap,eur6m_zero,4988926.69,5551185.80,562259.11
1212
Cap,eur_capfloor_par,4988926.69,4413744.60,-575182.09
1313
Cap,eur_capfloor_zero,4988926.69,4411082.64,-577844.06
14-
Cap,eur_ester_par,4988926.69,4925225.31,-63701.38
15-
Cap,eur_ester_par_and_FX,4988926.69,4925225.31,-63701.38
14+
Cap,eur_ester_par,4988926.69,4923338.02,-65588.67
15+
Cap,eur_ester_par_and_FX,4988926.69,4923338.02,-65588.67
1616
Cap,eur_ester_zero,4988926.69,4938763.65,-50163.04
17-
EUR6MSwap,eur6m_no_caplet,5924803.71,8061685.03,2136881.32
18-
EUR6MSwap,eur6m_par,5924803.71,8061685.03,2136881.32
17+
EUR6MSwap,eur6m_no_caplet,5924803.71,8055907.11,2131103.40
18+
EUR6MSwap,eur6m_par,5924803.71,8055907.11,2131103.40
1919
EUR6MSwap,eur6m_zero,5924803.71,7615306.91,1690503.20
20-
EUR6MSwap,eur_ester_par,5924803.71,5847119.02,-77684.69
21-
EUR6MSwap,eur_ester_par_and_FX,5924803.71,5847119.02,-77684.69
20+
EUR6MSwap,eur_ester_par,5924803.71,5847515.87,-77287.84
21+
EUR6MSwap,eur_ester_par_and_FX,5924803.71,5847515.87,-77287.84
2222
EUR6MSwap,eur_ester_zero,5924803.71,5867078.77,-57724.94
2323
XccySwap,eur_ester_par,268875.79,1184689.32,915813.53
2424
XccySwap,eur_ester_par_and_FX,268875.79,230961.73,-37914.06

Examples/Example_63/Input/sensitivity.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
<ShiftType>Absolute</ShiftType>
5151
<ShiftSize>0.0001</ShiftSize>
5252
<ShiftScheme>Forward</ShiftScheme>
53-
<ShiftTenors>1D, 1M, 2M, 3M, 4M, 5M, 6M, 9M, 1Y, 2Y, 3Y, 4Y, 5Y, 6Y, 7Y, 8Y, 9Y, 10Y, 12Y, 15Y, 20Y, 25Y, 30Y, 40Y, 50Y, 60Y</ShiftTenors>
53+
<ShiftTenors>6M, 7M, 8M,9M,10M,11M,1Y,15M,18M, 2Y, 3Y, 4Y, 5Y, 6Y, 7Y, 8Y, 9Y, 10Y, 12Y, 15Y, 20Y, 25Y, 30Y, 40Y, 50Y, 60Y</ShiftTenors>
5454
<ParConversion>
55-
<Instruments>DEP, DEP, DEP, DEP, DEP, DEP, DEP, DEP, DEP, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS</Instruments>
55+
<Instruments>DEP, FRA, FRA,FRA,FRA,FRA,FRA,FRA,FRA, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS, IRS</Instruments>
5656
<SingleCurve>false</SingleCurve>
5757
<DiscountCurve>EUR-ESTER</DiscountCurve>
5858
<Conventions>

Examples/Example_63/Input/stresstest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
<IndexCurve index="EUR-EURIBOR-6M">
287287
<ShiftType>Absolute</ShiftType>
288288
<Shifts>0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01</Shifts>
289-
<ShiftTenors>1D, 1M,2M,3M,4M,5M,6M,9M,1Y,2Y,3Y,4Y,5Y,6Y,7Y,8Y,9Y,10Y,12Y,15Y,20Y,25Y,30Y,40Y,50Y,60Y</ShiftTenors>
289+
<ShiftTenors>6M, 7M,8M,9M,10M,11M,12M,15M,18M,2Y,3Y,4Y,5Y,6Y,7Y,8Y,9Y,10Y,12Y,15Y,20Y,25Y,30Y,40Y,50Y,60Y</ShiftTenors>
290290
</IndexCurve>
291291

292292
<IndexCurve index="USD-SOFR">
@@ -363,7 +363,7 @@
363363
<IndexCurve index="EUR-EURIBOR-6M">
364364
<ShiftType>Absolute</ShiftType>
365365
<Shifts>0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01</Shifts>
366-
<ShiftTenors>1D, 1M,2M,3M,4M,5M,6M,9M,1Y,2Y,3Y,4Y,5Y,6Y,7Y,8Y,9Y,10Y,12Y,15Y,20Y,25Y,30Y,40Y,50Y,60Y</ShiftTenors>
366+
<ShiftTenors>6M, 7M,8M,9M,10M,11M,12M,15M,18M,2Y,3Y,4Y,5Y,6Y,7Y,8Y,9Y,10Y,12Y,15Y,20Y,25Y,30Y,40Y,50Y,60Y</ShiftTenors>
367367
</IndexCurve>
368368

369369
<IndexCurve index="USD-SOFR">
@@ -440,7 +440,7 @@
440440
<IndexCurve index="EUR-EURIBOR-6M">
441441
<ShiftType>Absolute</ShiftType>
442442
<Shifts>0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01</Shifts>
443-
<ShiftTenors>1D, 1M,2M,3M,4M,5M,6M,9M,1Y,2Y,3Y,4Y,5Y,6Y,7Y,8Y,9Y,10Y,12Y,15Y,20Y,25Y,30Y,40Y,50Y,60Y</ShiftTenors>
443+
<ShiftTenors>6M, 7M,8M,9M,10M,11M,12M,15M,18M,2Y,3Y,4Y,5Y,6Y,7Y,8Y,9Y,10Y,12Y,15Y,20Y,25Y,30Y,40Y,50Y,60Y</ShiftTenors>
444444
</IndexCurve>
445445

446446
<IndexCurve index="USD-SOFR">

QuantExt/qle/ad/external_randomvariable_ops.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222

2323
namespace QuantExt {
2424

25+
std::size_t ExternalRandomVariable::nCreated_ = 0;
26+
std::size_t ExternalRandomVariable::nDeleted_ = 0;
27+
2528
ExternalRandomVariable::ExternalRandomVariable(std::size_t id) : initialized_(true), id_(id) {}
2629

2730
ExternalRandomVariable::ExternalRandomVariable(double v) : initialized_(true), v_(v) {
@@ -38,6 +41,7 @@ ExternalRandomVariable::ExternalRandomVariable(const std::size_t randomVariableO
3841
});
3942
id_ = ComputeEnvironment::instance().context().applyOperation(randomVariableOpCode, argIds);
4043
initialized_ = true;
44+
nCreated_++;
4145
}
4246

4347
void ExternalRandomVariable::clear() {

QuantExt/qle/ad/external_randomvariable_ops.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ class ExternalRandomVariable {
4545
static std::function<void(ExternalRandomVariable&)> preDeleter;
4646
static std::function<void(ExternalRandomVariable&)> deleter;
4747

48+
static std::size_t nCreated_, nDeleted_;
49+
4850
private:
4951
bool initialized_ = false;
5052
bool freed_ = false;

0 commit comments

Comments
 (0)