Skip to content

Commit b5d8120

Browse files
pcaspersjenkins
authored andcommitted
QPR-12014 we can loop over fewer keys here
1 parent a399a8a commit b5d8120

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OREAnalytics/orea/engine/zerotoparcube.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ map<RiskFactorKey, Real> ZeroToParCube::parDeltas(QuantLib::Size cubeIdx, QuantL
104104
}
105105

106106
// Add non-zero deltas that do not need to be converted from underlying zero cube
107-
for (const auto& f : zeroCube->factors()) {
107+
for (const auto& f : rkeys) {
108108
if (!ParSensitivityAnalysis::isParType(f.keytype) || typesDisabled_.count(f.keytype) == 1) {
109109
Real delta = zeroCube->delta(tradeIdx, f);
110110
if (!close(delta, 0.0)) {

0 commit comments

Comments
 (0)