27 #ifndef MPBLOCKS_POLYNOMIAL_RVALUE_H_
28 #define MPBLOCKS_POLYNOMIAL_RVALUE_H_
31 namespace polynomial {
34 template <
typename Scalar,
class Exp>
43 return static_cast<Exp const&
>(*this).size();
56 return static_cast<Exp const&
>(*this)[i];
64 return static_cast<Exp&
>(*this);
70 return static_cast<Exp const&
>(*this);
86 #endif // MATRIXEXPRESSION_H_
Size_t size() const
return the size for a vector
expression template for rvalues
Scalar operator[](Size_t i) const
return the evaluated i'th element of a vector expression