flashquad.methods.trapezoid

Composite trapezoidal rule.

Module Contents

Functions

_trapezoid

Composite trapezoidal rule along the given axis.

trapz

Integrate using the composite trapezoidal rule.

API

flashquad.methods.trapezoid._trapezoid(xp, y, x, axis)

Composite trapezoidal rule along the given axis.

flashquad.methods.trapezoid.trapz(xp, dtype, func, intervals, num_points, *, params=None, boundary=None, device=None)

Integrate using the composite trapezoidal rule.