I am looking at some SciML problems where, depending on the stability of the ODE, the integrand used w/ HCubature.jl may return Inf. I am noticing inconsistent behavior across hquadrature and hcubature for single and multi-dim domains.
using HCubature
g(x) = x[1] > 0.0 ? Inf : x[1]
hquadrature(g, -1.0, 1.0) #Inf
hcubature(g, -ones(1), ones(1)) #Inf
hcubature(g, -ones(2), ones(2)) #NaN
I see similar behavior in Cubature.jl as well, but Cubature.hcubature returns Inf up to dim = 4 and then NaN, while Cubature.pcubature returns Inf up dim = 17 (haven't test passed that).
Is this the expected behavior? I assume this is due to some Inf*0 that is propagating down.
Thanks.
I am looking at some SciML problems where, depending on the stability of the ODE, the integrand used w/ HCubature.jl may return Inf. I am noticing inconsistent behavior across
hquadratureandhcubaturefor single and multi-dim domains.I see similar behavior in Cubature.jl as well, but
Cubature.hcubaturereturns Inf up to dim = 4 and then NaN, whileCubature.pcubaturereturns Inf up dim = 17 (haven't test passed that).Is this the expected behavior? I assume this is due to some Inf*0 that is propagating down.
Thanks.