Defined to be inherited by polynomial solvers: it provides convenient methods such as. More...
Public Types | |
typedef DenseIndex | Index |
typedef NumTraits< Scalar >::Real | RealScalar |
typedef Matrix< RootType, Deg_, 1 > | RootsType |
typedef std::complex< RealScalar > | RootType |
typedef Scalar_ | Scalar |
Public Member Functions | |
const RealScalar & | absGreatestRealRoot (bool &hasArealRoot, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const |
const RealScalar & | absSmallestRealRoot (bool &hasArealRoot, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const |
const RealScalar & | greatestRealRoot (bool &hasArealRoot, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const |
const RootType & | greatestRoot () const |
PolynomialSolverBase () | |
template<typename OtherPolynomial > | |
PolynomialSolverBase (const OtherPolynomial &poly) | |
template<typename Stl_back_insertion_sequence > | |
void | realRoots (Stl_back_insertion_sequence &bi_seq, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const |
const RootsType & | roots () const |
const RealScalar & | smallestRealRoot (bool &hasArealRoot, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const |
const RootType & | smallestRoot () const |
Protected Member Functions | |
template<typename squaredNormBinaryPredicate > | |
const RootType & | selectComplexRoot_withRespectToNorm (squaredNormBinaryPredicate &pred) const |
template<typename squaredRealPartBinaryPredicate > | |
const RealScalar & | selectRealRoot_withRespectToAbsRealPart (squaredRealPartBinaryPredicate &pred, bool &hasArealRoot, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const |
template<typename RealPartBinaryPredicate > | |
const RealScalar & | selectRealRoot_withRespectToRealPart (RealPartBinaryPredicate &pred, bool &hasArealRoot, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const |
template<typename OtherPolynomial > | |
void | setPolynomial (const OtherPolynomial &poly) |
Protected Attributes | |
RootsType | m_roots |
Defined to be inherited by polynomial solvers: it provides convenient methods such as.
It stores the set of roots as a vector of complexes.
Definition at line 31 of file PolynomialSolver.h.
typedef DenseIndex Eigen::PolynomialSolverBase< Scalar_, Deg_ >::Index |
Definition at line 41 of file PolynomialSolver.h.
typedef NumTraits<Scalar>::Real Eigen::PolynomialSolverBase< Scalar_, Deg_ >::RealScalar |
Definition at line 37 of file PolynomialSolver.h.
typedef Matrix<RootType,Deg_,1> Eigen::PolynomialSolverBase< Scalar_, Deg_ >::RootsType |
Definition at line 39 of file PolynomialSolver.h.
typedef std::complex<RealScalar> Eigen::PolynomialSolverBase< Scalar_, Deg_ >::RootType |
Definition at line 38 of file PolynomialSolver.h.
typedef Scalar_ Eigen::PolynomialSolverBase< Scalar_, Deg_ >::Scalar |
Definition at line 36 of file PolynomialSolver.h.
|
inline |
Definition at line 50 of file PolynomialSolver.h.
|
inline |
Definition at line 53 of file PolynomialSolver.h.
|
inline |
[out] | hasArealRoot | : boolean true if a real root is found according to the absImaginaryThreshold criterion, false otherwise. |
[in] | absImaginaryThreshold | : threshold on the absolute imaginary part to decide whether or not a root is real. |
Definition at line 214 of file PolynomialSolver.h.
|
inline |
[out] | hasArealRoot | : boolean true if a real root is found according to the absImaginaryThreshold criterion, false otherwise. |
[in] | absImaginaryThreshold | : threshold on the absolute imaginary part to decide whether or not a root is real. |
Definition at line 237 of file PolynomialSolver.h.
|
inline |
[out] | hasArealRoot | : boolean true if a real root is found according to the absImaginaryThreshold criterion, false otherwise. |
[in] | absImaginaryThreshold | : threshold on the absolute imaginary part to decide whether or not a root is real. |
Definition at line 260 of file PolynomialSolver.h.
|
inline |
Definition at line 102 of file PolynomialSolver.h.
|
inline |
Clear and fills the back insertion sequence with the real roots of the polynomial i.e. the real part of the complex roots that have an imaginary part which absolute value is smaller than absImaginaryThreshold. absImaginaryThreshold takes the dummy_precision associated with the Scalar_ template parameter of the PolynomialSolver class as the default value.
[out] | bi_seq | : the back insertion sequence (stl concept) |
[in] | absImaginaryThreshold | : the maximum bound of the imaginary part of a complex number that is considered as real. |
Definition at line 71 of file PolynomialSolver.h.
|
inline |
|
inlineprotected |
Definition at line 85 of file PolynomialSolver.h.
|
inlineprotected |
Definition at line 119 of file PolynomialSolver.h.
|
inlineprotected |
Definition at line 160 of file PolynomialSolver.h.
|
inlineprotected |
Definition at line 45 of file PolynomialSolver.h.
|
inline |
[out] | hasArealRoot | : boolean true if a real root is found according to the absImaginaryThreshold criterion, false otherwise. |
[in] | absImaginaryThreshold | : threshold on the absolute imaginary part to decide whether or not a root is real. |
Definition at line 283 of file PolynomialSolver.h.
|
inline |
Definition at line 111 of file PolynomialSolver.h.
|
protected |
Definition at line 292 of file PolynomialSolver.h.