Related to and supplants #44, this makes the change hcubature(f, a, b ... to hcubature(f::F, a, b... where F. The same benchmark as the other PR on the same machine is
julia> using HCubature, BenchmarkTools
julia> @benchmark hcubature(x -> cos(x[1])*cos(x[2]), [0,0], [1,1])
BenchmarkTools.Trial: 10000 samples with 1 evaluation.
Range (min … max): 11.121 μs … 8.734 ms ┊ GC (min … max): 0.00% … 99.38%
Time (median): 11.484 μs ┊ GC (median): 0.00%
Time (mean ± σ): 12.554 μs ± 87.231 μs ┊ GC (mean ± σ): 6.91% ± 0.99%
▄▇▆▆██▆▃▁
▁▄▇█████████▇▆▅▄▄▃▃▃▂▂▂▂▂▂▂▁▁▁▁▁▁▁▁▁▁▁▁▂▂▂▂▂▂▂▂▂▂▂▂▁▁▁▁▁▁▁▁ ▃
11.1 μs Histogram: frequency by time 13.6 μs <
Memory estimate: 4.12 KiB, allocs estimate: 27.
Related to and supplants #44, this makes the change
hcubature(f, a, b ...
tohcubature(f::F, a, b... where F
. The same benchmark as the other PR on the same machine is