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

◆ heuman_lambda

auto eve::heuman_lambda = functor<heuman_lambda_t>
inlineconstexpr

Header file

#include <eve/module/elliptic.hpp>

Callable Signatures

namespace eve
{
// Regular overload
constexpr auto heuman_lambda(floating_value auto u, floating_value auto x) noexcept; // 1
// Lanes masking
constexpr auto heuman_lambda[conditional_expr auto c](/*any of the above overloads*/) noexcept; // 2
constexpr auto heuman_lambda[logical_value autolm](/*any of the above overloads*/) 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 logical_value<T> is satisfied if and only if T satisfies eve::value and the element type ...
Definition value.hpp:132
constexpr auto heuman_lambda
elementwise_callable object computing the Heuman lambda function.
Definition heuman_lambda.hpp:82
EVE Main Namespace.
Definition abi.hpp:18

Parameters

Return value

  1. return the Heuman lambda value
  2. The operation is performed conditionally

External references

Example

// revision 1
#include <eve/module/elliptic.hpp>
#include <iostream>
eve::wide wf{0.9, 0.2, 0.75, 0.5};
eve::wide wphi{0.8, 1.0e-30, 0.5, 0.1};
int main(){
std::cout << "<- wf = " << wf << "\n";
std::cout << "<- wphi = " << wphi << "\n";
std::cout << "-> heuman_lambda(wphi, wf) = " << eve::heuman_lambda(wphi, wf) << "\n";
std::cout << "-> heuman_lambda[ignore_last(2)](wphi,wf)= " << eve::heuman_lambda[eve::ignore_last(2)](wphi, wf) << "\n";
std::cout << "-> heuman_lambda[wf != 1.0](wphi,wf) = " << eve::heuman_lambda[wf != -1.0f](wphi, wf) << "\n";
std::cout << "-> heuman_lambda(pio_2[lower], wf) = " << eve::heuman_lambda(eve::pio_2[eve::lower](eve::as(wphi)), wf) << '\n';
std::cout << "-> heuman_lambda(pio_2[upper], wf) = " << eve::heuman_lambda(eve::pio_2[eve::upper](eve::as(wphi)), wf) << '\n';
}
constexpr auto pio_2
Callable object computing the constant .
Definition pio_2.hpp:77
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:89