Logo Search packages:      
Sourcecode: eigen3 version File versions  Download package

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

PolynomialSolverBase< _Scalar, _Deg > Class Template Reference
[Polynomials_Module]

Defined to be inherited by polynomial solvers: it provides convenient methods such as

More...

#include <PolynomialSolver.h>

Inheritance diagram for PolynomialSolverBase< _Scalar, _Deg >:
Inheritance graph
[legend]
Collaboration diagram for PolynomialSolverBase< _Scalar, _Deg >:
Collaboration graph
[legend]

List of all members.

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
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 RootsTyperoots () 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

Detailed Description

template<typename _Scalar, int _Deg>
class PolynomialSolverBase< _Scalar, _Deg >

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 42 of file PolynomialSolver.h.


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

Generated by  Doxygen 1.6.0   Back to index