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

◆ abel

auto eve::abel = functor<abel_t>
inlineconstexpr

Header file

#include <eve/module/polynomial.hpp>

Callable Signatures

namespace eve
{
// Regular overload
constexpr auto abel(integral_value auto n, floating_value auto x, floating_value auto a) noexcept; // 1
// Lanes masking
constexpr auto abel[conditional_expr auto c](integral_value auto n, floating_value auto x, floating_value auto a) noexcept; // 2
constexpr auto abel[logical_value auto m](integral_value auto n, floating_value auto x, floating_value auto a) noexcept; // 2
}
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 integral_value<T> is satisfied if and only if T satisfies eve::value and the element type...
Definition value.hpp:51
The concept logical_value<T> is satisfied if and only if T satisfies eve::value and the element type ...
Definition value.hpp:132
constexpr auto abel
Computes the value of the Abel polynomial of order n at x: .
Definition abel.hpp:73
EVE Main Namespace.
Definition abi.hpp:18

Parameters

Return value

1.The value of the polynomial at x is returned.

  1. The operation is performed conditionnaly.

External references

Example

// revision 1
#include <eve/module/polynomial.hpp>
#include <iostream>
int main()
{
eve::wide wx = {-1.0f, 0.0f, 1.0f, 2.0f};
eve::wide wa = {0.0f, 1.0f, 2.0f, 3.0f};
eve::wide wn = {0, 1, 2, 3};
std::cout << "<- wx = " << wx << "\n";
std::cout << "<- wa = " << wa<< "\n";
std::cout << "<- wn = " << wn << "\n";
std::cout << "-> abel(wn, wx, wa) = " << eve::abel(wn, wx, wa) << "\n";
std::cout << "-> abel(wa, wx, wa) = " << eve::abel(wa, wx, wa) << "\n";
std::cout << "-> abel[ignore_last(2)](wa, wx, wa) = " << eve::abel[eve::ignore_last(2)](wa, wx, wa) << "\n";
std::cout << "-> abel[wx != 2.0f](wa, wx, wa) = " << eve::abel[wx != 2.0f](wa, wx, wa) << "\n";
}
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition conditional.hpp:332
Wrapper for SIMD registers.
Definition wide.hpp:70