You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / polynomial / laguerre / lagcompanion

function

numpy.polynomial.laguerre:lagcompanion

source: /numpy/polynomial/laguerre.py :1421

Signature

def   lagcompanion ( c )

Summary

Return the companion matrix of c.

Extended Summary

The usual companion matrix of the Laguerre polynomials is already symmetric when c is a basis Laguerre polynomial, so no scaling is applied.

Parameters

c : array_like

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

Returns

mat : ndarray

Companion matrix of dimensions (deg, deg).

Examples

from numpy.polynomial.laguerre import lagcompanion
lagcompanion([1, 2, 3])

Aliases

  • numpy.polynomial.laguerre.lagcompanion