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

add support for inplace integrand #27

Merged
merged 8 commits into from
Nov 7, 2022
Merged

add support for inplace integrand #27

merged 8 commits into from
Nov 7, 2022

Conversation

kunyuan
Copy link
Member

@kunyuan kunyuan commented Nov 7, 2022

No description provided.

@kunyuan kunyuan added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 7, 2022
src/main.jl Outdated
Integral 1 = 0.6663652080622751 ± 0.000490978424216832 (chi2/dof = 0.645)

julia> integrate((x, f, c)-> (f=x[1]^2+x[2]^2); var = Continuous(0.0, 1.0), dof = 2, print=-2, solver=:vegas, inplace=true) # inplace version
Integral 1 = 0.0 ± 3.3333333333333335e-11 (chi2/dof = 0.0)
Copy link
Contributor

Choose a reason for hiding this comment

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

The in-place integration result looks incorrect (c.f. line 53). Perhaps line 55 did not run correctly?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, I fixed it with the new commit.

Copy link
Contributor

@dcerkoney dcerkoney left a comment

Choose a reason for hiding this comment

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

Looks good to me!

src/main.jl Outdated Show resolved Hide resolved
@kunyuan kunyuan merged commit a1b0017 into master Nov 7, 2022
@kunyuan kunyuan deleted the dev_inplace branch November 7, 2022 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants