polyval - 2024.2 English - XD160

Vitis Libraries

Document ID
XD160
Release Date
2024-11-29
Version
2024.2 English
#include "xf_fintech/polyfit.hpp"
template <
    typename DT,
    unsigned int D
    >
DT polyval (
    const DT coeff [D],
    const DT x
    )

Calculates the polynomial evaluation of a set of coefficients at the point ‘x’.

Parameters:

DT  
: The data type to be used.
D  
: The degree of the polynomial
coeff  
: The list of polynomial coefficients calculated with polyfit.
x  
: The point at which the polynomial should be evaluated.