#include <vnl_rpoly_roots.h>
Collaboration diagram for vnl_rpoly_roots:
Public Methods | |
vnl_rpoly_roots (const vnl_vector< double > &a) | |
vnl_rpoly_roots (const vnl_real_polynomial &poly) | |
vcl_complex< double > | operator[] (int i) const |
vnl_vector< vcl_complex< double > > | roots () const |
const double & | real (int i) const |
const double & | imag (int i) const |
vnl_vector< double > & | real () |
vnl_vector< double > & | imag () |
vnl_vector< double > | realroots (double tol=1e-12) const |
bool | compute () |
bool | compute_qr () |
bool | compute_laguerre () |
Protected Attributes | |
vnl_vector< double > | coeffs_ |
vnl_vector< double > | r_ |
vnl_vector< double > | i_ |
int | num_roots_found_ |
Definition at line 35 of file vnl_rpoly_roots.h.
|
The constructor calculates the roots.\ This is the most efficient interface. as all the result variables are initialized to the correct size. The polynomial is . |
|
Calculate roots of RealPolynomial. |
|
Compute roots using Jenkins-Traub algorithm. |
|
Compute roots using Laguerre algorithm.\ [unimplemented]. |
|
Compute roots using QR decomposition of companion matrix.\ [unimplemented]. |
|
Vector of imaginary parts of roots. Definition at line 74 of file vnl_rpoly_roots.h. References coeffs_, i_, num_roots_found_, and r_. |
|
Imaginary part of root I. Definition at line 66 of file vnl_rpoly_roots.h. |
|
Return i'th complex root. Definition at line 53 of file vnl_rpoly_roots.h. References r_. |
|
Vector of real parts of roots. Definition at line 70 of file vnl_rpoly_roots.h. |
|
Real part of root I. Definition at line 62 of file vnl_rpoly_roots.h. References i_. |
|
Return real roots only.\ Roots are real if the absolute value. of their imaginary part is less than the optional argument TOL. TOL defaults to 1e-12 [untested] |
|
Complex vector of all roots. |
|
Definition at line 102 of file vnl_rpoly_roots.h. Referenced by imag(). |
|
Definition at line 105 of file vnl_rpoly_roots.h. |
|
Definition at line 107 of file vnl_rpoly_roots.h. Referenced by imag(). |
|
Definition at line 104 of file vnl_rpoly_roots.h. Referenced by imag(), and operator[](). |