This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / interpolate / _ppoly / integrate

fused_cython_function

scipy.interpolate._ppoly:integrate

Signature

def integrate(c, x, a, b, extrapolate, out)

Summary

Compute integral over a piecewise polynomial.

Parameters

c : ndarray, shape (k, m, n)

Coefficients local polynomials of order k-1 in m intervals.

x : ndarray, shape (m+1,)

Breakpoints of polynomials

a : double

Start point of integration.

b : double

End point of integration.

extrapolate : bint, optional

Whether to extrapolate to out-of-bounds points based on first and last intervals, or to return NaNs.

out : ndarray, shape (n,)

Integral of the piecewise polynomial, assuming the polynomial is zero outside the range (x[0], x[-1]). This argument is modified in-place.

Aliases

  • scipy.interpolate._ppoly.integrate