numpy.polynomial.legendre.legvander()

numpy.polynomial.legendre.legvander

numpy.polynomial.legendre.legvander(x, deg) [source]

Pseudo-Vandermonde matrix of given degree.

Returns the pseudo-Vandermonde matrix of degree deg and sample points x. The pseudo-Vandermonde matrix is defined by

V[..., i] = L_i(x)

where 0 <= i <= deg. The leading indices of V index the elements of x and the last index is the degree of the Legendre polynomi