This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / polynomial / hermite_e / hermecompanion

function

numpy.polynomial.hermite_e:hermecompanion

source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/hermite_e.py :1363

Signature

def   hermecompanion ( c )

Summary

Return the scaled companion matrix of c.

Extended Summary

The basis polynomials are scaled so that the companion matrix is symmetric when c is a HermiteE 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

c : array_like

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

Returns

mat : ndarray

Scaled companion matrix of dimensions (deg, deg).

Aliases

  • numpy.polynomial.hermite_e.hermecompanion