Skip to content
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

Merged
merged 48 commits into from
Nov 12, 2024

Conversation

klausspanderen
Copy link
Contributor

  • Bjerksund-Stensland spread engine
  • Operator-Splitting spread engine
  • Deng-Li-Zhou basket & spread engine
  • Choi basket & spread engine
  • n-dim PDE basket & spread engine

@coveralls
Copy link

coveralls commented Nov 9, 2024

Coverage Status

coverage: 73.048% (+0.2%) from 72.803%
when pulling 4529267 on klausspanderen:spread_option
into 585bb09 on lballabio:master.

@@ -80,6 +80,8 @@ namespace QuantLib {
a.begin(), Real(0.0));
}

Array weights() const { return weights_; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MulitDimGaussianIntegration::MulitDimGaussianIntegration(
MultiDimGaussianIntegration::MulitDimGaussianIntegration(

typo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx, fixed

Copy link
Owner

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, strange, changed it.

@lballabio lballabio merged commit 266c3d3 into lballabio:master Nov 12, 2024
42 checks passed
@lballabio lballabio added this to the Release 1.37 milestone Nov 12, 2024
@klausspanderen klausspanderen deleted the spread_option branch November 12, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants