Skip to content

Commit

Permalink
align interface definition of spread option engines (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio authored Nov 20, 2024
2 parents 1a33f15 + afdfc61 commit 7fb0190
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions SWIG/basketoptions.i
Original file line number Diff line number Diff line change
Expand Up @@ -249,17 +249,17 @@ class StulzEngine : public PricingEngine {
%shared_ptr(KirkEngine)
class KirkEngine : public PricingEngine {
public:
KirkEngine(const ext::shared_ptr<BlackProcess>& process1,
const ext::shared_ptr<BlackProcess>& process2,
KirkEngine(ext::shared_ptr<GeneralizedBlackScholesProcess> process1,
ext::shared_ptr<GeneralizedBlackScholesProcess> process2,
Real correlation);
};

%shared_ptr(BjerksundStenslandSpreadEngine)
class BjerksundStenslandSpreadEngine : public PricingEngine {
public:
BjerksundStenslandSpreadEngine(
const ext::shared_ptr<BlackProcess>& process1,
const ext::shared_ptr<BlackProcess>& process2,
ext::shared_ptr<GeneralizedBlackScholesProcess> process1,
ext::shared_ptr<GeneralizedBlackScholesProcess> process2,
Real correlation);
};

Expand All @@ -268,8 +268,8 @@ class OperatorSplittingSpreadEngine : public PricingEngine {
public:
enum Order {First, Second};
OperatorSplittingSpreadEngine(
const ext::shared_ptr<BlackProcess>& process1,
const ext::shared_ptr<BlackProcess>& process2,
ext::shared_ptr<GeneralizedBlackScholesProcess> process1,
ext::shared_ptr<GeneralizedBlackScholesProcess> process2,
Real correlation,
Order order = Second);
};
Expand Down

0 comments on commit 7fb0190

Please sign in to comment.