Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ erfcx_paired_horner()

template<typename T , std::size_t N>
T stan::math::internal::erfcx_paired_horner ( const std::array< double, N > &  c,
const T &  y,
const T &  y2 
)
inline

Horner in y^2 over adjacent coefficient pairs, so the two halves of the chain are independent.

Template Parameters
Tscalar type
Nnumber of coefficients
Parameters
ccoefficients, ascending
yargument
y2y * y
Returns
polynomial value

Definition at line 75 of file erfcx.hpp.