E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
abel
eve::abel = functor<abel_t>
inline
constexpr
Header file
#include <eve/module/polynomial.hpp>
Callable Signatures
namespace
eve
{
// Regular overload
constexpr
auto
abel
(
integral_value
auto
n
,
floating_value
auto
x
,
floating_value
auto
a
)
noexcept
;
// 1
// Lanes masking
constexpr
auto
abel
[
conditional_expr
auto
c
](
integral_value
auto
n
,
floating_value
auto
x
,
floating_value
auto
a
)
noexcept
;
// 2
constexpr
auto
abel
[
logical_value
auto
m
](
integral_value
auto
n
,
floating_value
auto
x
,
floating_value
auto
a
)
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::integral_value
The concept integral_value<T> is satisfied if and only if T satisfies eve::value and the element type...
Definition
value.hpp:51
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::abel
constexpr auto abel
Computes the value of the Abel function of order n at x: . for positive integer n it is Abel polynomi...
Definition
abel.hpp:74
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
n
:
value
x
:
real floating argument
.
a
:
real floating argument
.
Return value
1.The value of the polynomial at
x
is returned.
The operation is performed conditionnaly
.
External references
Wikipedia: Abel Polynomials
Wolfram MathWorld: Abel Polynomial
Example
// revision 1
#include <eve/module/polynomial.hpp>
#include <iostream>
int
main
()
{
eve::wide
wx
= {-1.0f, 0.0f, 1.0f, 2.0f};
eve::wide
wa
= {0.0f, 1.0f, 2.0f, 3.0f};
eve::wide
wn
= {0, 1, 2, 3};
std::cout <<
"<- wx = "
<<
wx
<<
"\n"
;
std::cout <<
"<- wa = "
<<
wa
<<
"\n"
;
std::cout <<
"<- wn = "
<<
wn
<<
"\n"
;
std::cout <<
"-> abel(wn, wx, wa) = "
<<
eve::abel
(
wn
,
wx
,
wa
) <<
"\n"
;
std::cout <<
"-> abel(wa, wx, wa) = "
<<
eve::abel
(
wa
,
wx
,
wa
) <<
"\n"
;
std::cout <<
"-> abel[ignore_last(2)](wa, wx, wa) = "
<<
eve::abel
[
eve::ignore_last
(2)](
wa
,
wx
,
wa
) <<
"\n"
;
std::cout <<
"-> abel[wx != 2.0f](wa, wx, wa) = "
<<
eve::abel
[
wx
!= 2.0f](
wa
,
wx
,
wa
) <<
"\n"
;
}
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