cheshirekow
v0.1.0
|
A dense, dynamically sized polynomial. More...
#include <mpblocks/polynomial/Polynomial.h>
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... | |
A dense, dynamically sized polynomial.
Definition at line 158 of file Polynomial.h.
typedef LValue< Scalar, Polynomial_t > mpblocks::polynomial::Polynomial< Scalar, Dynamic >::LValue_t |
Definition at line 170 of file Polynomial.h.
typedef Polynomial<Scalar,Dynamic> mpblocks::polynomial::Polynomial< Scalar, Dynamic >::Polynomial_t |
Definition at line 169 of file Polynomial.h.
typedef unsigned int mpblocks::polynomial::Polynomial< Scalar, Dynamic >::Size_t |
Definition at line 189 of file Polynomial.h.
typedef std::vector<Scalar> mpblocks::polynomial::Polynomial< Scalar, Dynamic >::Vector_t |
Definition at line 190 of file Polynomial.h.
anonymous enum |
Enumerator | |
---|---|
FACTORED |
Definition at line 164 of file Polynomial.h.
|
inline |
Default constructor.
Definition at line 193 of file Polynomial.h.
|
inline |
Definition at line 198 of file Polynomial.h.
|
inline |
fixed size construction
Definition at line 206 of file Polynomial.h.
|
inline |
Definition at line 212 of file Polynomial.h.
|
inline |
Definition at line 219 of file Polynomial.h.
|
inline |
Definition at line 237 of file Polynomial.h.
|
inline |
Definition at line 227 of file Polynomial.h.
|
inline |
Definition at line 232 of file Polynomial.h.