You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / polynomial / polyutils / _vander_nd

function

numpy.polynomial.polyutils:_vander_nd

source: /numpy/polynomial/polyutils.py :364

Signature

def   _vander_nd ( vander_fs points degrees )

Summary

A generalization of the Vandermonde matrix for N dimensions

Extended Summary

The result is built by combining the results of 1d Vandermonde matrices,

where

Expanding the one-dimensional functions gives:

where is the m'th basis of the polynomial construction used along dimension . For a regular polynomial, .

Parameters

vander_fs : Sequence[function(array_like, int) -> ndarray]

The 1d vander function to use for each axis, such as polyvander

points : Sequence[array_like]

Arrays of point coordinates, all of the same shape. The dtypes will be converted to either float64 or complex128 depending on whether any of the elements are complex. Scalars are converted to 1-D arrays. This must be the same length as vander_fs.

degrees : Sequence[int]

The maximum degree (inclusive) to use for each axis. This must be the same length as vander_fs.

Returns

vander_nd : ndarray

An array of shape points[0].shape + tuple(d + 1 for d in degrees).

Aliases

  • numpy.polynomial.polyutils._vander_nd