Polynomials

Polynomial Package

Polynomial Module

cupy.polynomial.polynomial.polyvander

Computes the Vandermonde matrix of given degree.

cupy.polynomial.polynomial.polycompanion

Computes the companion matrix of c.

Polyutils

cupy.polynomial.polyutils.as_series

Returns argument as a list of 1-d arrays.

cupy.polynomial.polyutils.trimseq

Removes small polynomial series coefficients.

cupy.polynomial.polyutils.trimcoef

Removes small trailing coefficients from a polynomial.

Poly1d

Basics

cupy.poly1d

A one-dimensional polynomial class.

cupy.polyval

Evaluates a polynomial at specific values.

cupy.roots

Computes the roots of a polynomial with given coefficients.

Fitting

cupy.polyfit

Returns the least squares fit of polynomial of degree deg to the data y sampled at x.

Arithmetic

cupy.polyadd

Computes the sum of two polynomials.

cupy.polysub

Computes the difference of two polynomials.

cupy.polymul

Computes the product of two polynomials.