carl  24.04
Computer ARithmetic Library
EigenWrapper.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 namespace carl {
6 namespace roots {
7 namespace eigen {
8 
9 /**
10  * Compute approximations of the real roots of the univariate polynomials with the given coefficients.
11  * This method internally constructs a companion matrix and computes the eigenvalues.
12  */
13 std::vector<double> root_approximation(const std::vector<double>& coeffs);
14 
15 }
16 }
17 }
carl is the main namespace for the library.
std::vector< double > root_approximation(const std::vector< double > &coeffs)
Compute approximations of the real roots of the univariate polynomials with the given coefficients.