Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
BIAS::LaguerreSolver Class Reference

class encapsulating a laguerre solver for polynomials More...

#include <MathAlgo/Laguerre.hh>

Public Member Functions

 LaguerreSolver ()
 
void SetPolish (bool b)
 
int Solve (const std::vector< std::complex< double > > &coeffs, std::vector< std::complex< double > > &roots, const double eps=1.0e-14)
 compute roots of a polynomial using the laguerre method More...
 
int Solve (const std::vector< double > &coeffs, std::vector< std::complex< double > > &roots, const double eps=1.0e-14)
 

Detailed Description

class encapsulating a laguerre solver for polynomials

Test:
tested with TestLaguerre.cpp
Examples:
ExampleLaguerre.cpp.

Definition at line 39 of file Laguerre.hh.

Constructor & Destructor Documentation

BIAS::LaguerreSolver::LaguerreSolver ( )
inline

Definition at line 42 of file Laguerre.hh.

Member Function Documentation

void BIAS::LaguerreSolver::SetPolish ( bool  b)
inline

Definition at line 59 of file Laguerre.hh.

int LaguerreSolver::Solve ( const std::vector< std::complex< double > > &  coeffs,
std::vector< std::complex< double > > &  roots,
const double  eps = 1.0e-14 
)

compute roots of a polynomial using the laguerre method

Parameters
[in]coeffsthe coefficients in in ascending order
[out]rootsthe roots of the polynomial

p(x) = coeffs[0] + coeffs[1] * x + ... + coeffs[n]*(x^n)

Examples:
ExampleLaguerre.cpp.

Definition at line 46 of file Laguerre.cpp.

Referenced by BIAS::PolynomialSolve::Numeric().

int LaguerreSolver::Solve ( const std::vector< double > &  coeffs,
std::vector< std::complex< double > > &  roots,
const double  eps = 1.0e-14 
)

Definition at line 33 of file Laguerre.cpp.


The documentation for this class was generated from the following files: