E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
heuman_lambda
eve::heuman_lambda = functor<heuman_lambda_t>
inline
constexpr
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
}
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::heuman_lambda
constexpr auto heuman_lambda
elementwise_callable object computing the Heuman lambda function.
Definition
heuman_lambda.hpp:82
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
u
: argument.
x
: amplitude parameter ( \(0\le m\le 1\)).
c
:
Conditional expression
masking the operation.
l
:
Logical value
masking the operation.
Return value
return the Heuman lambda value
The operation is performed conditionally
External references
Wolfram MathWorld: Heuman lambda Function
Wikipedia: Heuman Lambda functions
Boost: Heuman lambda
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'
;
}
eve::as
Lightweight type-wrapper.
Definition
as.hpp:29
eve::ignore_last
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition
conditional.hpp:320
eve::wide
Wrapper for SIMD registers.
Definition
wide.hpp:94
eve