numpy 1.22.4 Pypi GitHub Homepage
Other Docs
ParametersReturnsBackRef
_vander_nd(vander_fs, points, degrees)

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

$$W[i_0, \ldots, i_M, j_0, \ldots, j_N] = \prod_{k=0}^N{V_k(x_k)[i_0, \ldots, i_M, j_k]}$$

where

$$N &= \texttt{len(points)} = \texttt{len(degrees)} = \texttt{len(vander\_fs)} \\ M &= \texttt{points[k].ndim} \\ V_k &= \texttt{vander\_fs[k]} \\ x_k &= \texttt{points[k]} \\ 0 \le j_k &\le \texttt{degrees[k]}$$

Expanding the one-dimensional $V_k$ functions gives:

$$W[i_0, \ldots, i_M, j_0, \ldots, j_N] = \prod_{k=0}^N{B_{k, j_k}(x_k[i_0, \ldots, i_M])}$$

where $B_{k,m}$ is the m'th basis of the polynomial construction used along dimension $k$ . For a regular polynomial, $B_{k, m}(x) = P_m(x) = x^m$ .

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 :None:None:`vander_fs`.

degrees : Sequence[int]

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

Returns

vander_nd : ndarray

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

A generalization of the Vandermonde matrix for N dimensions

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

numpy.polynomial.polyutils._vander_nd_flat

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/polynomial/polyutils.py#377
type: <class 'function'>
Commit: