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

◆ double_factorial

auto eve::double_factorial = functor<double_factorial_t>
inlineconstexpr
  1. The operation is performed conditionnaly.

External references

Example

// revision 1
#include <eve/module/special.hpp>
#include <iostream>
int main()
{
eve::wide wu = {1u, 2u, 3u, 4u, 5u, 6u, 181u, 182u};
std::cout << "<- wu = " << wu << "\n";
std::cout << "-> double_factorial(wu) = " << eve::double_factorial(wu) << "\n";
std::cout << "-> double_factorial[ignore_last(2)](wu)= " << eve::double_factorial[eve::ignore_last(2)](wu) << "\n";
std::cout << "-> double_factorial[wu != 182u](wu) = " << eve::double_factorial[wu != 182u](wu) << "\n";
}
constexpr auto double_factorial
elementwise_callableobject computing the double factorial ofn ! ! THe double factorial is defined as ...
Definition double_factorial.hpp:77
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition conditional.hpp:332
Wrapper for SIMD registers.
Definition wide.hpp:70