E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
lambert
eve::lambert = functor<lambert_t>
inline
constexpr
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
! }
eve::conditional_expr
Specifies that a type is a Conditional Expression.
Definition
conditional.hpp:28
eve::floating_value
The concept floating_value<T> is satisfied if and only if T satisfies eve::value and the element type...
Definition
value.hpp:116
eve::logical_value
The concept logical_value<T> is satisfied if and only if T satisfies eve::value and the element type ...
Definition
value.hpp:134
eve::lambert
constexpr auto lambert
Computes the inverse of the function .
Definition
lambert.hpp:75
eve::translate_t
typename decltype(detail::as_translated_type(as< T >{}))::type translate_t
Returns the final translated type of T.
Definition
translation.hpp:107
eve
EVE Main Namespace.
Definition
abi.hpp:19
Parameters
x
:
value
.
c
:
Conditional expression
masking the operation.
m
:
Logical value
masking the operation.
Return value
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.
The operation is performed conditionnaly
.
External references
Wikipedia: Lambert W function
DLMF
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"
;
}
eve::wide
Wrapper for SIMD registers.
Definition
wide.hpp:94
eve