27 #ifndef MPBLOCKS_POLYNOMIAL_NEGATIVE_H_
28 #define MPBLOCKS_POLYNOMIAL_NEGATIVE_H_
31 namespace polynomial {
34 template <
typename Scalar,
class Exp>
36 public RValue< Scalar,Negative<Scalar,Exp> >
62 return -
m_exp.eval(x);
69 template <
typename Scalar,
class Exp>
74 return Negative_t( static_cast<Exp const&>(exp) );
Difference< Scalar, Exp1, Exp2 > operator-(RValue< Scalar, Exp1 > const &A, RValue< Scalar, Exp2 > const &B)
expression template for rvalues
Size_t size() const
return the size for a vector
Scalar operator[](Size_t i) const
return the evaluated i'th element of a vector expression
expression template for sum of two matrix expressions