polyval

Contents

polyval#

Evaluate a polynomial given an input sequence and coefficients

template<typename Op, typename Coeffs>
__MATX_INLINE__ auto matx::polyval(const Op &op, const Coeffs &coeffs)#

Evaluate a polynomial.

Currently only allows 1D input and coefficients

Template Parameters:
  • Op – Type of input values to evaluate

  • Coeffs – Type of coefficients

Parameters:
  • op – Input values to evaluate

  • coeffs – Coefficient values

Returns:

polyval operator

Examples#

(out = polyval(x, c)).run(exec);