#include <eve/module/core.hpp>
#include <iostream>
#include <numeric>
int main()
{
kumi::tuple t{ 2.0f, 3.0f, 1.0f,10000.0f, 10.0f};
std::cout << "t " << t << std::endl;
std::cout <<
"eve::cumfun(add, 1.0, 2.0, 3.0, 10000.0) " <<
eve::cumfun(
eve::add, 1.0, 2.0, 3.0, 10000.0) << std::endl;
std::cout <<
"eve::cumfun[eve::widen](add, t) " <<
eve::cumfun[eve::widen](
eve::add, t) << std::endl;
std::array<std::int16_t, 4> a{1, 2, 3, 32767};
auto ta = std::bit_cast<kumi::result::fill_t<4, std::int16_t>>(a);
std::cout << "ta " << ta << std::endl;
std::cout <<
"eve::cumfun[eve::saturated](add, ta) " <<
eve::cumfun[eve::saturated](
eve::add, ta) << std::endl;
std::cout <<
"eve::cumfun[eve::widen](add, ta) " <<
eve::cumfun[eve::widen](
eve::add, ta) << std::endl;
auto e = wf_t([](
auto i,
auto){
return eve::sqr(
float(i)); });
kumi::tuple wt{wf_t(e), 2.0f, 30000.0f, 100000.0f};
std::cout << "wt " << wt << std::endl;
};
constexpr auto sqr
Computes the square of the parameter.
Definition sqr.hpp:98
constexpr auto min
Computes the minimum of its arguments.
Definition min.hpp:103
constexpr auto mul
tuple_callable computing the product of its arguments.
Definition mul.hpp:128
constexpr auto max
Computes the maximum of its arguments.
Definition max.hpp:101
constexpr auto add
tuple_callable computing the sum of its arguments.
Definition add.hpp:126
constexpr auto bit_xor
bit_callable object computing the bitwise XOR of its arguments.
Definition bit_xor.hpp:86
constexpr auto bit_and
bit_callable object computing the bitwise AND of its arguments.
Definition bit_and.hpp:93
constexpr auto bit_or
bit_callable object computing the bitwise OR of its arguments.
Definition bit_or.hpp:88
Wrapper for SIMD registers.
Definition wide.hpp:94