-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Single dim domain bounds as arrays #14
Comments
using Quadrature, Cubature
qprob = QuadratureProblem((x,p)->sin.(x),0,π; nout=1, batch=0)
sol = solve(qprob, CubatureJLh(), reltol=1e-3,abstol=1e-3)
qprob = QuadratureProblem((x,p)->sin.(x),[0],[π]; nout=1, batch=0)
sol = solve(qprob, CubatureJLh(), reltol=1e-3,abstol=1e-3)
qprob = QuadratureProblem((x,p)->sin.(x),0,π; nout=1, batch=0)
sol = solve(qprob, CubatureJLp(), reltol=1e-3,abstol=1e-3)
qprob = QuadratureProblem((x,p)->sin.(x),[0],[π]; nout=1, batch=0)
sol = solve(qprob, CubatureJLp(), reltol=1e-3,abstol=1e-3)
|
Yes, all of the methods are made in such a way that scalar values are kept different from array values, where that's the difference between 1 dimensional and N-dimensional. We can definitely relax that a bit by checking if size is 1 |
I understand that you may want to treat them different, however, both should work. |
I think we should get rid of the |
Single dim algorithms error when integration bounds are single element arrays.
The text was updated successfully, but these errors were encountered: