cupy.polynomial.polynomial.polycompanion

cupy.polynomial.polynomial.polycompanion(c)[source]

Computes the companion matrix of c.

Parameters

c (cupy.ndarray) – 1-D array of polynomial coefficients ordered from low to high degree.

Returns

Companion matrix of dimensions (deg, deg).

Return type

cupy.ndarray