quadax.AbstractCubatureRule

class quadax.AbstractCubatureRuleSource

Abstract base class for cubature rules over an n-dimensional box.

Subclasses should implement ndim and the integrate method for integrating a function over a fixed box using the given rule.

Subclasses may also override the norm method for measuring error for vector valued integrands. Default is the infinity (max) norm.

Methods

integrate(fun, a, b, args)

Integrate fun(x, *args) over the box with corners a and b.

norm(x)

Norm to use for measuring error for vector valued integrands.

Attributes

ndim

Dimension of the domain this rule integrates over.