Defined in header <scicpp/polynomials.hpp>
Raise a polynomial to a power.
pow
, typename T
, std::size_t N
>polypow
(const std::array<T, N> &P)¶Polynomial coefficients are defined in a std::array P.
The power is the template argument pow.
method
, typename T
>polypow
(const std::vector<T> &P, std::size_t pow)¶Polynomial coefficients are defined in a std::vector P and the power is the function argument pow.
Return a std::vector of size pow * (P.size() - 1) + 1
.
The template argument method define the method to use for polynomial
multiplications either using direct convolution (scicpp::polynomial::ConvMethod::DIRECT
, by default)
or using Fast Fourier Transform (scicpp::polynomial::ConvMethod::FFT
).