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 / _cubic / prepare_input

function

scipy.interpolate._cubic:prepare_input

source: build-install/usr/lib/python3.14/site-packages/scipy/interpolate/_cubic.py:22

Signature

def prepare_input(x, y, axis, dydx = None, xp = None)

Summary

Prepare input for cubic spline interpolators.

Extended Summary

All data are converted to numpy arrays and checked for correctness. Axes equal to axis of arrays y and dydx are moved to be the 0th axis. The value of axis is converted to lie in [0, number of dimensions of y).

Aliases

  • scipy.interpolate._cubic.prepare_input