bundles / scipy 1.17.1 / scipy / interpolate / _ppoly / evaluate_nd
fused_cython_function
scipy.interpolate._ppoly:evaluate_nd
Signature
def evaluate_nd ( c , xs , ks , xp , dx , extrapolate , out ) Summary
Evaluate a piecewise tensor-product polynomial.
Parameters
c: ndarray, shape (k_1*...*k_d, m_1*...*m_d, n)Coefficients local polynomials of order
k-1inm_1, ...,m_dintervals. There arenpolynomials in each interval.ks: ndarray of int, shape (d,)Orders of polynomials in each dimension
xs: d-tuple of ndarray of shape (m_d+1,) eachBreakpoints of polynomials
xp: ndarray, shape (r, d)Points to evaluate the piecewise polynomial at.
dx: ndarray of int, shape (d,)Orders of derivative to evaluate. The derivative is evaluated piecewise and may have discontinuities.
extrapolate: int, optionalWhether to extrapolate to out-of-bounds points based on first and last intervals, or to return NaNs.
out: ndarray, shape (r, n)Value of each polynomial at each of the input points. For points outside the span
x[0] ... x[-1],nanis returned. This argument is modified in-place.
Aliases
-
scipy.interpolate._ppoly.evaluate_nd