#include <eve/module/core.hpp>
#include <iostream>
#include <iomanip>
int main()
{
eve::wide wf0{0.0, 1.0, 2.0, 3.0, -1.0, -2.0, -3.0, 1.0};
std::cout << "<- wf0 = " << wf0 << "\n";
std::cout << "<- wf1 = " << wf1 << "\n";
std::cout << "<- wi0 = " << wi0 << "\n";
std::cout << "<- wi1 = " << wi1 << "\n";
std::cout <<
"-> average(wf0, wf1) = " <<
eve::average(wf0, wf1) <<
"\n";
std::cout <<
"-> average(wi0, wi1) = " <<
eve::average(wi0, wi1) <<
"\n";
std::cout <<
"-> average[wi0 != 0](wi0, wi1) = " <<
eve::average[wi0 != 0](wi0, wi1) <<
"\n";
std::cout <<
"-> average[raw](wi0, wi1) = " <<
eve::average[eve::raw](wi0, wi1) <<
"\n";
std::cout <<
"-> average[upper](wi0, wi1) = " <<
eve::average[eve::upper](wi0, wi1) <<
"\n";
std::cout <<
"-> average[lower](wi0, wi1) = " <<
eve::average[eve::lower](wi0, wi1) <<
"\n";
std::cout << std::setprecision(20) <<
"-> average[upper](wf0, wf1) = " <<
eve::average[eve::upper](wf0, wf1) <<
"\n";
std::cout <<
"-> average[lower](wf0, wf1) = " <<
eve::average[eve::lower](wf0, wf1) <<
"\n";
std::cout << std::setprecision(20) <<
"-> average[lower][strict](wf0, wf1) = " <<
eve::average[eve::lower][eve::strict](wf0, wf1) <<
"\n";
std::cout << std::setprecision(20) <<
"-> average[upper][strict](wf0, wf1) = " <<
eve::average[eve::upper][eve::strict](wf0, wf1) <<
"\n";
}
constexpr auto average
tuple_callable computing the arithmetic mean of its arguments.
Definition average.hpp:120
constexpr auto smallestposval
Computes the smallest normal positive value.
Definition smallestposval.hpp:70
Lightweight type-wrapper.
Definition as.hpp:29
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition conditional.hpp:332
Wrapper for SIMD registers.
Definition wide.hpp:86
{
constexpr auto average(kumi::non_empty_product_type
auto const& tup)
noexcept;
constexpr auto average[raw] ()
noexcept;
}
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
The concept value<T> is satisfied if and only if T satisfies either eve::scalar_value or eve::simd_va...
Definition value.hpp:34
EVE Main Namespace.
Definition abi.hpp:18
The value of the arithmetic mean of the arguments is returned.