cupy.poly#

cupy.poly(seq_of_zeros)[source]#

Computes the coefficients of a polynomial with the given roots sequence.

Parameters

seq_of_zeros (cupy.ndarray) – a sequence of polynomial roots.

Returns

polynomial coefficients from highest to lowest degree.

Return type

cupy.ndarray

Warning

This function doesn’t support general 2d square arrays currently. Only complex Hermitian and real symmetric 2d arrays are allowed.

See also

numpy.poly()