cheshirekow  v0.1.0
mpblocks::polynomial::SturmSequence< Scalar > Class Template Reference

#include <mpblocks/polynomial/SturmSequence.h>

Public Types

typedef Polynomial< Scalar,
Dynamic > 
Poly_t
 
typedef std::vector
< Polynomial< Scalar, Dynamic > > 
PolyList_t
 
typedef Quotient< Scalar,
Poly_t, Poly_t
Quotient_t
 

Public Member Functions

const RValue< Scalar, Poly_t > & operator[] (int i) const
 
template<class Exp >
void rebuild (const RValue< Scalar, Exp > &rhs)
 
int signChanges (Scalar x)
 return the number of sign changes at the specified point More...
 
int size () const
 
 SturmSequence ()
 
template<class Exp >
 SturmSequence (const RValue< Scalar, Exp > &rhs)
 builds a sturm sequence from a polynomial More...
 

Private Attributes

PolyList_t m_seq
 

Detailed Description

template<typename Scalar>
class mpblocks::polynomial::SturmSequence< Scalar >

Definition at line 39 of file SturmSequence.h.

Member Typedef Documentation

template<typename Scalar>
typedef Polynomial<Scalar,Dynamic> mpblocks::polynomial::SturmSequence< Scalar >::Poly_t

Definition at line 42 of file SturmSequence.h.

template<typename Scalar>
typedef std::vector< Polynomial<Scalar,Dynamic> > mpblocks::polynomial::SturmSequence< Scalar >::PolyList_t

Definition at line 44 of file SturmSequence.h.

template<typename Scalar>
typedef Quotient<Scalar,Poly_t,Poly_t> mpblocks::polynomial::SturmSequence< Scalar >::Quotient_t

Definition at line 43 of file SturmSequence.h.

Constructor & Destructor Documentation

template<typename Scalar>
mpblocks::polynomial::SturmSequence< Scalar >::SturmSequence ( )
inline

Definition at line 51 of file SturmSequence.h.

template<typename Scalar>
template<class Exp >
mpblocks::polynomial::SturmSequence< Scalar >::SturmSequence ( const RValue< Scalar, Exp > &  rhs)
inline

builds a sturm sequence from a polynomial

Definition at line 56 of file SturmSequence.h.

Member Function Documentation

template<typename Scalar>
const RValue< Scalar, Poly_t >& mpblocks::polynomial::SturmSequence< Scalar >::operator[] ( int  i) const
inline

Definition at line 103 of file SturmSequence.h.

template<typename Scalar>
template<class Exp >
void mpblocks::polynomial::SturmSequence< Scalar >::rebuild ( const RValue< Scalar, Exp > &  rhs)
inline

< f_0 is original

< f_1 is derivative

Definition at line 62 of file SturmSequence.h.

template<typename Scalar>
int mpblocks::polynomial::SturmSequence< Scalar >::signChanges ( Scalar  x)
inline

return the number of sign changes at the specified point

Definition at line 85 of file SturmSequence.h.

template<typename Scalar>
int mpblocks::polynomial::SturmSequence< Scalar >::size ( ) const
inline

Definition at line 113 of file SturmSequence.h.

Member Data Documentation

template<typename Scalar>
PolyList_t mpblocks::polynomial::SturmSequence< Scalar >::m_seq
private

Definition at line 47 of file SturmSequence.h.


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