-
-
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
transformation_if_inf
is not type stable
#65
Comments
Do you have an MWE? |
Since |
I don't recall what exactly I meant by "updating". Here is a MWE I just put together, I'm not sure if it captures the same problem I had in the OP. using Quadrature , Distributions , Test
μ = [0.00 , 0.00]
Σ = [0.4 0.0 ; 0.00 0.4]
d = MvNormal(μ , Σ)
m(x , p) = pdf(d, x)
prob = QuadratureProblem{false}(m, [-Inf , -Inf] , [Inf , Inf])
sol = solve(prob,HCubatureJL(),reltol=1e-3,abstol=1e-3) |
Could it not use a function barrier or something? |
Not really, because it's a higher order function. |
There must be something, we can chat about this at the summit. |
I mean |
|
I've addressed this issue in #241 by making sure with tests that all |
Updating
transformation_if_inf
is sufficient to make HCubatureJL() type stable. Other methods are still type unstable.The text was updated successfully, but these errors were encountered: