-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
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) |
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.
The in-place integration result looks incorrect (c.f. line 53). Perhaps line 55 did not run correctly?
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.
Good catch, I fixed it with the new commit.
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.
Looks good to me!
No description provided.