Closed xiaoweiz closed 7 years ago
Would make sense to merge QuadGK and HCubature?
@giordano, I would tend to prefer keeping them separate. The functionality overlaps (and HCubature calls QuadGK to get 1d coefficients/points), but is not quite the same. e.g. QuadGK allows one to compute quadrature rules to any order, but HCubature will probably always be fixed-order (or at best limited to a small set of choices). HCubature requires the integrand to be type stable to gain some extra performance, whereas QuadGK is a less picky....
Another way of putting it is that the sharing is mostly one-way. HCubature gets 1d quadrature rules from QuadGK, but there is not much code in HCubature that would be useful in QuadGK. (At most a few lines in the hcubature_
function could be shared.)
Point taken, thanks!
Okay, added (though you can also call
quadgk
from the QuadGK package.)