cheshirekow  v0.1.0
mpblocks::polynomial::Polynomial< Scalar, Dynamic > Class Template Reference

A dense, dynamically sized polynomial. More...

#include <mpblocks/polynomial/Polynomial.h>

Inheritance diagram for mpblocks::polynomial::Polynomial< Scalar, Dynamic >:
mpblocks::polynomial::LValue< Scalar, Polynomial< Scalar, Dynamic > > mpblocks::polynomial::RValue< Scalar, Polynomial< Scalar, Dynamic > >

Classes

struct  iterator
 

Public Types

enum  { FACTORED =0 }
 
typedef LValue< Scalar,
Polynomial_t
LValue_t
 
typedef Polynomial< Scalar,
Dynamic > 
Polynomial_t
 
typedef unsigned int Size_t
 
typedef std::vector< Scalar > Vector_t
 
- Public Types inherited from mpblocks::polynomial::LValue< Scalar, Polynomial< Scalar, Dynamic > >
typedef unsigned int Size_t
 
typedef StreamAssignment
< LValue< Scalar, Polynomial
< Scalar, Dynamic > > > 
Stream_t
 
- Public Types inherited from mpblocks::polynomial::RValue< Scalar, Polynomial< Scalar, Dynamic > >
typedef unsigned int Size_t
 

Public Member Functions

Scalar eval (Scalar x)
 
Scalar & operator() (const iterator iter)
 
Scalar const & operator() (const iterator iter) const
 
 Polynomial (int size=0)
 Default constructor. More...
 
template<typename Exp >
 Polynomial (const RValue< Scalar, Exp > &exp)
 
 Polynomial (Scalar a0)
 fixed size construction More...
 
 Polynomial (Scalar a0, Scalar a1)
 
 Polynomial (Scalar a0, Scalar a1, Scalar a2)
 
- Public Member Functions inherited from mpblocks::polynomial::LValue< Scalar, Polynomial< Scalar, Dynamic > >
Size_t degree () const
 
void fill (Scalar val)
 
 operator RValue< Scalar, Polynomial< Scalar, Dynamic > > ()
 
Stream_t operator<< (Scalar x)
 returns a stream for assignment More...
 
LValue< Scalar, Polynomial
< Scalar, Dynamic > > & 
operator= (RValue< Scalar, Exp2 > const &B)
 
Scalar & operator[] (Size_t i)
 return the evaluated i'th element of a vector expression More...
 
void resize (Size_t size)
 
Size_t size () const
 return the size for a vector More...
 
- Public Member Functions inherited from mpblocks::polynomial::RValue< Scalar, Polynomial< Scalar, Dynamic > >
Size_t degree () const
 
 operator Polynomial< Scalar, Dynamic > & ()
 return a reference to the derived type More...
 
 operator Polynomial< Scalar, Dynamic >const & ()
 return a const reference to the derived type More...
 
Scalar operator[] (Size_t i) const
 return the evaluated i'th element of a vector expression More...
 
Size_t size () const
 return the size for a vector More...
 

Detailed Description

template<typename Scalar>
class mpblocks::polynomial::Polynomial< Scalar, Dynamic >

A dense, dynamically sized polynomial.

Definition at line 158 of file Polynomial.h.

Member Typedef Documentation

template<typename Scalar >
typedef LValue< Scalar, Polynomial_t > mpblocks::polynomial::Polynomial< Scalar, Dynamic >::LValue_t

Definition at line 170 of file Polynomial.h.

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

Definition at line 169 of file Polynomial.h.

template<typename Scalar >
typedef unsigned int mpblocks::polynomial::Polynomial< Scalar, Dynamic >::Size_t

Definition at line 189 of file Polynomial.h.

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

Definition at line 190 of file Polynomial.h.

Member Enumeration Documentation

template<typename Scalar >
anonymous enum
Enumerator
FACTORED 

Definition at line 164 of file Polynomial.h.

Constructor & Destructor Documentation

template<typename Scalar >
mpblocks::polynomial::Polynomial< Scalar, Dynamic >::Polynomial ( int  size = 0)
inline

Default constructor.

Definition at line 193 of file Polynomial.h.

template<typename Scalar >
template<typename Exp >
mpblocks::polynomial::Polynomial< Scalar, Dynamic >::Polynomial ( const RValue< Scalar, Exp > &  exp)
inline

Definition at line 198 of file Polynomial.h.

template<typename Scalar >
mpblocks::polynomial::Polynomial< Scalar, Dynamic >::Polynomial ( Scalar  a0)
inline

fixed size construction

Definition at line 206 of file Polynomial.h.

template<typename Scalar >
mpblocks::polynomial::Polynomial< Scalar, Dynamic >::Polynomial ( Scalar  a0,
Scalar  a1 
)
inline

Definition at line 212 of file Polynomial.h.

template<typename Scalar >
mpblocks::polynomial::Polynomial< Scalar, Dynamic >::Polynomial ( Scalar  a0,
Scalar  a1,
Scalar  a2 
)
inline

Definition at line 219 of file Polynomial.h.

Member Function Documentation

template<typename Scalar >
Scalar mpblocks::polynomial::Polynomial< Scalar, Dynamic >::eval ( Scalar  x)
inline

Definition at line 237 of file Polynomial.h.

template<typename Scalar >
Scalar& mpblocks::polynomial::Polynomial< Scalar, Dynamic >::operator() ( const iterator  iter)
inline

Definition at line 227 of file Polynomial.h.

template<typename Scalar >
Scalar const& mpblocks::polynomial::Polynomial< Scalar, Dynamic >::operator() ( const iterator  iter) const
inline

Definition at line 232 of file Polynomial.h.


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