You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In multi-variable integration, it can be efficient to integrate different variables with different algorithms. Currently, this can be expressed as an IntegralProblem for outer variables of integration whose integrand evaluates another IntegralProblem for inner variables of integration. Nearly all integration algorithms are oblivious to use cases such as these, which means that the caller has to make adjustments, such as rescaling absolute error tolerances for inner integrals, by hand. For example, with hypercube domains, the reltol can remain the same because quadrature (i.e. addition and multiplication) preserves the leading number of significant digits (in the absence of catastrophic cancellation), however the abstol for the inner integral should be the outer tolerance divided by vol(outer_hypercube) in order to provide the requested number of absolute digits to the outer integration routine after multiplying the outer integrand/inner integral by its outer quadrature weights.
I was thinking that IntegralProblem could be extended to allow multiple algorithm/domain pairs that indicate which algorithm to integrate which variables of integration, while handling calling each algorithm and rescaling tolerances internally. Could this feature be in the scope of Integrals.jl? Please advise
The text was updated successfully, but these errors were encountered:
I've been playing around with nested quadratures and other meta algorithms in AutoBZCore.jl (example here), which is like my fork of Integrals.jl, and it works surprisingly well. Meta algorithms for counting the number of integrand evaluations, getting a list of the quadrature evaluation points, and various other features are all possible and made much easier and more generic by the Integrals.jl interface.
In multi-variable integration, it can be efficient to integrate different variables with different algorithms. Currently, this can be expressed as an
IntegralProblem
for outer variables of integration whose integrand evaluates anotherIntegralProblem
for inner variables of integration. Nearly all integration algorithms are oblivious to use cases such as these, which means that the caller has to make adjustments, such as rescaling absolute error tolerances for inner integrals, by hand. For example, with hypercube domains, thereltol
can remain the same because quadrature (i.e. addition and multiplication) preserves the leading number of significant digits (in the absence of catastrophic cancellation), however theabstol
for the inner integral should be the outer tolerance divided byvol(outer_hypercube)
in order to provide the requested number of absolute digits to the outer integration routine after multiplying the outer integrand/inner integral by its outer quadrature weights.I was thinking that
IntegralProblem
could be extended to allow multiple algorithm/domain pairs that indicate which algorithm to integrate which variables of integration, while handling calling each algorithm and rescaling tolerances internally. Could this feature be in the scope ofIntegrals.jl
? Please adviseThe text was updated successfully, but these errors were encountered: