2 #ifndef vnl_rpoly_roots_h_ 3 #define vnl_rpoly_roots_h_ 20 # include <vcl_msvc_warnings.h> 23 #include <vnl/algo/vnl_algo_export.h> 58 std::complex<double> operator [] (
int i)
const {
return {r_[i], i_[i]}; }
64 const double&
real(
int i)
const {
return r_[i]; }
67 const double&
imag(
int i)
const {
return i_[i]; }
89 bool compute_laguerre();
101 #endif // vnl_rpoly_roots_h_
Find the roots of a real polynomial.
vnl_vector< double > coeffs_
const double & real(int i) const
Real part of root I.
Evaluation of real polynomials at real and complex points.
const double & imag(int i) const
Imaginary part of root I.
vnl_vector< double > & real()
Vector of real parts of roots.
vnl_vector< double > & imag()
Vector of imaginary parts of roots.