quadax.AbstractAdjoint.quadrature
- abstractmethod AbstractAdjoint.quadrature(ops: QuadratureOps, interval: Array | tuple[Array, ...], args: tuple, consts: tuple, kwargs: dict, opts: dict) tuple[Array, dict]Source
Evaluate the quadrature and define how it is differentiated.
- Parameters:
ops (
QuadratureOps) – Primitive operations for this quadrature method.interval (
jax.Arrayortupleofjax.Array) – Limits of integration with possible breakpoints, in the original (unmapped) coordinates. One array for a one dimensional quadrature, one per axis for a cubature over a box.args (
tuple) – Extra arguments to the integrand.consts (
tuple) – Values closed over by the integrand, hoisted out byjax.closure_convertso that they are visible to AD.kwargs (
dict) – Additional keyword arguments passed torule.opts (
dict) – Options forops.solve, including the local rule and the tolerances.
- Returns: