numpy.polynomial.chebyshev.chebcompanion

numpy.polynomial.chebyshev.chebcompanion(c) [source]

Return the scaled companion matrix of c.

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

Parameters
carray_like

1-D array of Chebyshev series coefficients ordered from low to high degree.

Returns
matndarray

Scaled companion matrix of dimensions (deg, deg).

Notes

New in version 1.7.0.

© 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.19/reference/generated/numpy.polynomial.chebyshev.chebcompanion.html