27 #ifndef MPBLOCKS_POLYNOMIAL_POLYVAL_H_
28 #define MPBLOCKS_POLYNOMIAL_POLYVAL_H_
31 namespace polynomial {
34 template <
typename Scalar,
class Exp>
40 for(
int i=1; i < poly.
size(); ++i)
Size_t size() const
return the size for a vector
expression template for rvalues
Scalar polyval(const RValue< Scalar, Exp > &poly, Scalar x)
evaluate a polynomial