Skip to content

Commit 7bba934

Browse files
pcaspersjenkins
authored andcommitted
QPR-12028 fix requirements of cond exp
1 parent 847cfaf commit 7bba934

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

QuantExt/qle/math/randomvariable_ops.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ std::vector<RandomVariableOpNodeRequirements> getRandomVariableOpNodeRequirement
260260
res.push_back([](const std::size_t nArgs) { return std::make_pair(std::vector<bool>(nArgs, true), false); });
261261

262262
// ConditionalExpectation = 6
263-
res.push_back([](const std::size_t nArgs) { return std::make_pair(std::vector<bool>(nArgs, true), false); });
263+
res.push_back([](const std::size_t nArgs) { return std::make_pair(std::vector<bool>(nArgs, true), true); });
264264

265265
// IndicatorEq = 7
266266
res.push_back([](const std::size_t nArgs) { return std::make_pair(std::vector<bool>(nArgs, false), false); });

0 commit comments

Comments
 (0)