Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvm committed Nov 3, 2023
1 parent 893ab8b commit 3b1fe66
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/derivative_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@ using Integrals, Zygote, FiniteDiff, ForwardDiff#, SciMLSensitivity
using Cuba, Cubature
using Test

algs = [QuadGKJL(), HCubatureJL(), CubatureJLh(), CubatureJLp(), #VEGAS(), #CubaVegas(),
CubaSUAVE(), CubaDivonne(), CubaCuhre()]

alg_req = Dict(QuadGKJL() => (nout = 1, allows_batch = false, min_dim = 1, max_dim = 1,
allows_iip = false),
HCubatureJL() => (nout = Inf, allows_batch = false, min_dim = 1,
max_dim = Inf, allows_iip = true),
VEGAS() => (nout = 1, allows_batch = true, min_dim = 2, max_dim = Inf,
allows_iip = true),
CubatureJLh() => (nout = Inf, allows_batch = true, min_dim = 1,
max_dim = Inf, allows_iip = true),
CubatureJLp() => (nout = Inf, allows_batch = true, min_dim = 1,
max_dim = Inf, allows_iip = true),
CubaVegas() => (nout = Inf, allows_batch = true, min_dim = 1, max_dim = Inf,
allows_iip = true),
CubaSUAVE() => (nout = Inf, allows_batch = true, min_dim = 1, max_dim = Inf,
allows_iip = true),
CubaDivonne() => (nout = Inf, allows_batch = true, min_dim = 2,
max_dim = Inf, allows_iip = true),
CubaCuhre() => (nout = Inf, allows_batch = true, min_dim = 2, max_dim = Inf,
allows_iip = true))


### One Dimensional

f(x, p) = sum(sin.(p[1] * x))
Expand Down

0 comments on commit 3b1fe66

Please sign in to comment.