E.V.E
v2023.02.15
Loading...
Searching...
No Matches

◆ horner()

*constexpr auto eve::horner ( )
constexprnoexcept

If \((c_i)_{0\le i\le n-1}\) denotes the coefficients of the polynomial by decreasing power order, the Horner scheme evaluates the polynom \(p\) at \(x\) by :

\(\qquad\displaystyle p(x) = (((c_0x+c_1)x+ ... )x + c_{n-1})\)

Header file

#include <eve/module/math.hpp>

Callable Signatures

namespace eve
{
// Regular overloads
constexpr auto horner(floating_value auto x, value auto ...ci) noexcept; // 1
constexpr auto horner(floating_value auto x, eve::coefficients auto tci) noexcept; // 2
// Lanes masking
constexpr auto horner<a href="*any of the above overloads*/" >conditional_expr auto c</a> noexcept; // 3
constexpr auto horner[logical_value auto m](*any of the above overloads
Specifies that a type is a Conditional Expression.
Definition conditional.hpp:28
The concept floating_value<T> is satisfied if and only if T satisfies eve::value and the element type...
Definition value.hpp:116
The concept logical_value<T> is satisfied if and only if T satisfies eve::value and the element type ...
Definition value.hpp:134
The concept value<T> is satisfied if and only if T satisfies either eve::scalar_value or eve::simd_va...
Definition value.hpp:34
constexpr auto any
Computes a bool value which is true if and only if one or more elements of x evaluates to true.
Definition any.hpp:97
***constexpr auto horner() noexcept
Implement the horner scheme to evaluate polynomials with coefficients in decreasing power order.
EVE Main Namespace.
Definition abi.hpp:19