2 #ifndef vnl_rnpoly_solve_h_ 3 #define vnl_rnpoly_solve_h_ 22 # include <vcl_msvc_warnings.h> 24 #include <vnl/algo/vnl_algo_export.h> 37 std::vector<vnl_real_npolynomial*>
ps_;
38 std::vector<vnl_vector<double>*>
r_;
39 std::vector<vnl_vector<double>*>
i_;
47 : ps_(std::move(ps)) { compute(); }
56 inline std::vector<vnl_vector<double>*>
real() {
return r_; }
59 inline std::vector<vnl_vector<double>*>
imag() {
return i_; }
64 std::vector<vnl_vector<double>*> realroots(
double tol = 1e-12);
72 void Read_Input(std::vector<unsigned int>& ideg,
73 std::vector<unsigned int>& terms,
74 std::vector<int>& polyn,
75 std::vector<double>& coeff);
78 #endif // vnl_rnpoly_solve_h_ std::vector< vnl_vector< double > * > real()
Array of real parts of roots.
std::vector< vnl_real_npolynomial * > ps_
std::vector< vnl_vector< double > * > i_
vnl_rnpoly_solve(std::vector< vnl_real_npolynomial * > ps)
The constructor already does all the calculations.
Solves for roots of system of real polynomials.
std::vector< vnl_vector< double > * > imag()
Array of imaginary parts of roots.
std::vector< vnl_vector< double > * > r_
contains class for polynomials with N variables