dreye.integral#

dreye.integral(arr, domain, axis=-1, keepdims=False)[source]#

Calculate the integral of an array over a given domain along an axis.

Parameters:
arrndarray

The array to integrate.

domainfloat or ndarray

The domain of integration. If a float, interpreted as the step size.

axisint, optional

The axis of integration, default is -1.

keepdimsbool, optional

Whether to keep the original number of dimensions, default is False.

Returns:
ndarray

Integral of

the array over the given domain.