This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / polynomial / laguerre / lagcompanion

function

numpy.polynomial.laguerre:lagcompanion

source: build-install/usr/lib/python3.14/site-packages/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