Basic Image AlgorithmS Library
2.8.0
|
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) |
class encapsulating a laguerre solver for polynomials
Definition at line 39 of file Laguerre.hh.
|
inline |
Definition at line 42 of file Laguerre.hh.
|
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
[in] | coeffs | the coefficients in in ascending order |
[out] | roots | the roots of the polynomial |
p(x) = coeffs[0] + coeffs[1] * x + ... + coeffs[n]*(x^n)
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.