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

◆ lambert

auto eve::lambert = functor<lambert_t>
inlineconstexpr

Header file

#include <eve/module/special.hpp>

Callable Signatures

namespace eve
{
// Regular overload
constexpr auto lambert(floating_value auto x) ; noexcept; // 1
// Lanes masking
constexpr auto lambert[conditional_expr auto c](floating_value auto x) noexcept; // 2
constexpr auto lambert[logical_value auto m](floating_value auto x) 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 lambert
Computes the inverse of the function .
Definition lambert.hpp:75
EVE Main Namespace.
Definition abi.hpp:18

Parameters

Return value

  1. A tuple of the two branch values of the Lambert function is returned with the following considerations:
    • The branches are not defined for input less than \(e^{-1}\) in that case the values returned are NaN.
    • If the inputs are positive, only one branch exist and the two returned values are equal.
  2. The operation is performed conditionnaly.

External references

Example

// revision 1
#include <eve/module/special.hpp>
#include <iostream>
int main()
{
eve::wide wf = {-1.0, -0.367879441171441, 0.0, -0.2, 0.2, -0.0, 3.0, 100.0};
std::cout << "-> lambert(wf) = " << eve::lambert(wf) << "\n";
}
Wrapper for SIMD registers.
Definition wide.hpp:70