cheshirekow  v0.1.0
mpblocks::polynomial::Sum< Scalar, Exp1, Exp2 > Class Template Reference

expression template for sum of two matrix expressions More...

#include <mpblocks/polynomial/Sum.h>

Inheritance diagram for mpblocks::polynomial::Sum< Scalar, Exp1, Exp2 >:
mpblocks::polynomial::RValue< Scalar, Sum< Scalar, Exp1, Exp2 > >

Public Types

typedef std::size_t Size_t
 
- Public Types inherited from mpblocks::polynomial::RValue< Scalar, Sum< Scalar, Exp1, Exp2 > >
typedef unsigned int Size_t
 

Public Member Functions

Scalar eval (Scalar x)
 
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...
 
 Sum (Exp1 const &A, Exp2 const &B)
 
- Public Member Functions inherited from mpblocks::polynomial::RValue< Scalar, Sum< Scalar, Exp1, Exp2 > >
Size_t degree () const
 
 operator Sum< Scalar, Exp1, Exp2 > & ()
 return a reference to the derived type More...
 
 operator Sum< Scalar, Exp1, Exp2 >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...
 

Private Attributes

Exp1 const & m_A
 
Exp2 const & m_B
 

Detailed Description

template<typename Scalar, class Exp1, class Exp2>
class mpblocks::polynomial::Sum< Scalar, Exp1, Exp2 >

expression template for sum of two matrix expressions

Definition at line 35 of file Sum.h.

Member Typedef Documentation

template<typename Scalar , class Exp1 , class Exp2 >
typedef std::size_t mpblocks::polynomial::Sum< Scalar, Exp1, Exp2 >::Size_t

Definition at line 45 of file Sum.h.

Constructor & Destructor Documentation

template<typename Scalar , class Exp1 , class Exp2 >
mpblocks::polynomial::Sum< Scalar, Exp1, Exp2 >::Sum ( Exp1 const &  A,
Exp2 const &  B 
)
inline

Definition at line 47 of file Sum.h.

Member Function Documentation

template<typename Scalar , class Exp1 , class Exp2 >
Scalar mpblocks::polynomial::Sum< Scalar, Exp1, Exp2 >::eval ( Scalar  x)
inline

Definition at line 72 of file Sum.h.

template<typename Scalar , class Exp1 , class Exp2 >
Scalar mpblocks::polynomial::Sum< Scalar, Exp1, Exp2 >::operator[] ( Size_t  i) const
inline

return the evaluated i'th element of a vector expression

Definition at line 60 of file Sum.h.

template<typename Scalar , class Exp1 , class Exp2 >
Size_t mpblocks::polynomial::Sum< Scalar, Exp1, Exp2 >::size ( ) const
inline

return the size for a vector

Definition at line 54 of file Sum.h.

Member Data Documentation

template<typename Scalar , class Exp1 , class Exp2 >
Exp1 const& mpblocks::polynomial::Sum< Scalar, Exp1, Exp2 >::m_A
private

Definition at line 41 of file Sum.h.

template<typename Scalar , class Exp1 , class Exp2 >
Exp2 const& mpblocks::polynomial::Sum< Scalar, Exp1, Exp2 >::m_B
private

Definition at line 42 of file Sum.h.


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