numpy.polynomial.chebyshev.chebcompanion

numpy.polynomial.chebyshev.chebcompanion(cs)

Return the scaled companion matrix of cs.

The basis polynomials are scaled so that the companion matrix is symmetric when cs represents a single Chebyshev polynomial. This provides better eigenvalue estimates than the unscaled case and in the single polynomial case the eigenvalues are guaranteed to be real if np.eigvalsh is used to obtain them.

Parameters :

cs : array_like

1-d array of Legendre series coefficients ordered from low to high degree.

Returns :

mat : ndarray

Scaled companion matrix of dimensions (deg, deg).

Next topic

numpy.polynomial.chebyshev.chebdomain

This Page