Eigen::PolynomialSolver< Scalar_, 1 > Class Template Reference
+ Inheritance diagram for Eigen::PolynomialSolver< Scalar_, 1 >:

Public Types

typedef PolynomialSolverBase< Scalar_, 1 > PS_Base
 
- Public Types inherited from Eigen::PolynomialSolverBase< Scalar_, 1 >
typedef DenseIndex Index
 
typedef NumTraits< Scalar >::Real RealScalar
 
typedef Matrix< RootType, Deg_, 1 > RootsType
 
typedef std::complex< RealScalarRootType
 
typedef Scalar_ Scalar
 

Public Member Functions

template<typename OtherPolynomial >
void compute (const OtherPolynomial &poly)
 
 PolynomialSolver ()
 
template<typename OtherPolynomial >
 PolynomialSolver (const OtherPolynomial &poly)
 
- Public Member Functions inherited from Eigen::PolynomialSolverBase< Scalar_, 1 >
const RealScalarabsGreatestRealRoot (bool &hasArealRoot, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const
 
const RealScalarabsSmallestRealRoot (bool &hasArealRoot, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const
 
const RealScalargreatestRealRoot (bool &hasArealRoot, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const
 
const RootTypegreatestRoot () const
 
 PolynomialSolverBase ()
 
 PolynomialSolverBase (const OtherPolynomial &poly)
 
void realRoots (Stl_back_insertion_sequence &bi_seq, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const
 
const RootsTyperoots () const
 
const RealScalarsmallestRealRoot (bool &hasArealRoot, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const
 
const RootTypesmallestRoot () const
 

Additional Inherited Members

- Protected Member Functions inherited from Eigen::PolynomialSolverBase< Scalar_, 1 >
const RootTypeselectComplexRoot_withRespectToNorm (squaredNormBinaryPredicate &pred) const
 
const RealScalarselectRealRoot_withRespectToAbsRealPart (squaredRealPartBinaryPredicate &pred, bool &hasArealRoot, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const
 
const RealScalarselectRealRoot_withRespectToRealPart (RealPartBinaryPredicate &pred, bool &hasArealRoot, const RealScalar &absImaginaryThreshold=NumTraits< Scalar >::dummy_precision()) const
 
void setPolynomial (const OtherPolynomial &poly)
 
- Protected Attributes inherited from Eigen::PolynomialSolverBase< Scalar_, 1 >
RootsType m_roots
 

Detailed Description

template<typename Scalar_>
class Eigen::PolynomialSolver< Scalar_, 1 >

Definition at line 401 of file PolynomialSolver.h.

Member Typedef Documentation

◆ PS_Base

template<typename Scalar_ >
typedef PolynomialSolverBase<Scalar_,1> Eigen::PolynomialSolver< Scalar_, 1 >::PS_Base

Definition at line 404 of file PolynomialSolver.h.

Constructor & Destructor Documentation

◆ PolynomialSolver() [1/2]

template<typename Scalar_ >
template<typename OtherPolynomial >
Eigen::PolynomialSolver< Scalar_, 1 >::PolynomialSolver ( const OtherPolynomial &  poly)
inline

Definition at line 419 of file PolynomialSolver.h.

419  {
420  compute( poly ); }
void compute(const OtherPolynomial &poly)

◆ PolynomialSolver() [2/2]

template<typename Scalar_ >
Eigen::PolynomialSolver< Scalar_, 1 >::PolynomialSolver ( )
inline

Definition at line 422 of file PolynomialSolver.h.

422 {}

Member Function Documentation

◆ compute()

template<typename Scalar_ >
template<typename OtherPolynomial >
void Eigen::PolynomialSolver< Scalar_, 1 >::compute ( const OtherPolynomial &  poly)
inline

Computes the complex roots of a new polynomial.

Definition at line 410 of file PolynomialSolver.h.

411  {
412  eigen_assert( poly.size() == 2 );
413  eigen_assert( Scalar(0) != poly[1] );
414  m_roots[0] = -poly[0]/poly[1];
415  }
#define eigen_assert(x)

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