-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added pricing engines for spread- and basket options #2110
Conversation
klausspanderen
commented
Nov 9, 2024
- Bjerksund-Stensland spread engine
- Operator-Splitting spread engine
- Deng-Li-Zhou basket & spread engine
- Choi basket & spread engine
- n-dim PDE basket & spread engine
ql/instruments/basketoption.hpp
Outdated
@@ -80,6 +80,8 @@ namespace QuantLib { | |||
a.begin(), Real(0.0)); | |||
} | |||
|
|||
Array weights() const { return weights_; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array weights() const { return weights_; } | |
const Array& weights() const { return weights_; } |
This avoids a copy when not needed.
@@ -59,6 +61,50 @@ namespace QuantLib { | |||
} | |||
|
|||
|
|||
MulitDimGaussianIntegration::MulitDimGaussianIntegration( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MulitDimGaussianIntegration::MulitDimGaussianIntegration( | |
MultiDimGaussianIntegration::MulitDimGaussianIntegration( |
typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx, fixed
test-suite/basketoption.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This got its executable bit turned on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, strange, changed it.
removed executable bit