scicpp::polynomial::polyfromroots

Defined in header <scicpp/polynomials.hpp>

Generate a polynomial with given roots.


template<typename T, std::size_t N>
Polynomial<T> polyfromroots(const std::array<T, N> &roots)

Build a Polynomial from the roots provided in a std::array.


template<typename T>
Polynomial<T> polyfromroots(const std::vector<T> &roots)

Build a Polynomial from the roots provided in a std::vector.