Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

vnl_rpoly_roots Class Reference

#include <vnl_rpoly_roots.h>

Collaboration diagram for vnl_rpoly_roots:

Collaboration graph
[legend]
List of all members.

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_

Detailed Description

Roots of real polynomial.

Definition at line 35 of file vnl_rpoly_roots.h.


Constructor & Destructor Documentation

vnl_rpoly_roots::vnl_rpoly_roots const vnl_vector< double > &    a
 

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 .

vnl_rpoly_roots::vnl_rpoly_roots const vnl_real_polynomial   poly
 

Calculate roots of RealPolynomial.


Member Function Documentation

bool vnl_rpoly_roots::compute  
 

Compute roots using Jenkins-Traub algorithm.

bool vnl_rpoly_roots::compute_laguerre  
 

Compute roots using Laguerre algorithm.\ [unimplemented].

bool vnl_rpoly_roots::compute_qr  
 

Compute roots using QR decomposition of companion matrix.\ [unimplemented].

vnl_vector<double>& vnl_rpoly_roots::imag   [inline]
 

Vector of imaginary parts of roots.

Definition at line 74 of file vnl_rpoly_roots.h.

References coeffs_, i_, num_roots_found_, and r_.

const double& vnl_rpoly_roots::imag int    i const [inline]
 

Imaginary part of root I.

Definition at line 66 of file vnl_rpoly_roots.h.

vcl_complex<double> vnl_rpoly_roots::operator[] int    i const [inline]
 

Return i'th complex root.

Definition at line 53 of file vnl_rpoly_roots.h.

References r_.

vnl_vector<double>& vnl_rpoly_roots::real   [inline]
 

Vector of real parts of roots.

Definition at line 70 of file vnl_rpoly_roots.h.

const double& vnl_rpoly_roots::real int    i const [inline]
 

Real part of root I.

Definition at line 62 of file vnl_rpoly_roots.h.

References i_.

vnl_vector<double> vnl_rpoly_roots::realroots double    tol = 1e-12 const
 

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]

vnl_vector<vcl_complex<double> > vnl_rpoly_roots::roots   const
 

Complex vector of all roots.


Member Data Documentation

vnl_vector<double> vnl_rpoly_roots::coeffs_ [protected]
 

Definition at line 102 of file vnl_rpoly_roots.h.

Referenced by imag().

vnl_vector<double> vnl_rpoly_roots::i_ [protected]
 

Definition at line 105 of file vnl_rpoly_roots.h.

Referenced by imag(), and real().

int vnl_rpoly_roots::num_roots_found_ [protected]
 

Definition at line 107 of file vnl_rpoly_roots.h.

Referenced by imag().

vnl_vector<double> vnl_rpoly_roots::r_ [protected]
 

Definition at line 104 of file vnl_rpoly_roots.h.

Referenced by imag(), and operator[]().


The documentation for this class was generated from the following file:
Generated at Wed Mar 12 01:13:39 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000