MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ horner()

MAYAFLUX_API double MayaFlux::Kinesis::Discrete::horner ( std::span< const double >  coefficients,
double  x 
)
noexcept

Horner evaluation, coefficients highest power first.

Definition at line 90 of file Kernels.cpp.

91{
92 double result = 0.0;
93 for (const double c : coefficients)
94 result = result * x + c;
95 return result;
96}

Referenced by iterated_polynomial().

+ Here is the caller graph for this function: