From 3b1fe6606652e08a1a0ec5953ad108b506bed8fe Mon Sep 17 00:00:00 2001 From: lxvm Date: Fri, 3 Nov 2023 18:34:55 -0400 Subject: [PATCH] initial commit --- test/derivative_tests.jl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/test/derivative_tests.jl b/test/derivative_tests.jl index 87b326f7..6470c7d5 100644 --- a/test/derivative_tests.jl +++ b/test/derivative_tests.jl @@ -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))