E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
ellint_rf
eve::ellint_rf = functor<ellint_rf_t>
inline
constexpr
Header file
#include <eve/module/elliptic.hpp>
Callable Signatures
namespace
eve
{
// Regular overload
constexpr
auto
ellint_rf
(
floating_value
auto
x
,
floating_value
auto
y
,
floating_value
auto
z
)
noexcept
;
// 1
// Lanes masking
constexpr
auto
ellint_rf
[
conditional_expr
auto
c
](
floating_value
auto
x
,
floating_value
auto
y
,
floating_value
auto
z
)
noexcept
;
// 2
constexpr
auto
ellint_rf
[
logical_value
auto
m
](
floating_value
auto
x
,
floating_value
auto
y
,
floating_value
auto
z
)
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::ellint_rf
constexpr auto ellint_rf
Computes the Carlson's elliptic integral .
Definition
ellint_rf.hpp:86
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
,
y
,
z
:
floating values
. All those arguments must be non-negative and at most one zero or the the result is NaN.
c
:
Conditional expression
masking the operation.
m
:
Logical value
masking the operation.
Return value
the value of the \(\mathbf{R}_\mathbf{F}\) Carlson elliptic integral: \( \mathbf{R}_\mathbf{F}(x, y) = \frac32 \int_{0}^{\infty} \scriptstyle[(t+x)(t+y)]^{-1/2} (t+z)^{-3/2}\scriptstyle\;\mathrm{d}t\). is returned
The operation is performed conditionnaly
External references
DLMF: Elliptic Integral
Wolfram MathWorld: Elliptic Integral
Example
// revision 1
#include <eve/module/elliptic.hpp>
#include <iostream>
eve::wide
pf
{1.0f, 0.0f, 1.5f, 3.0f};
eve::wide
qf
{1.0f, 4.0f, 0.2f, 0.5f};
eve::wide
rf
{2.0f, 1.0f, 0.1f, 0.4f};
int
main
()
{
std::cout <<
"<- pf = "
<<
pf
<<
"\n"
;
std::cout <<
"<- qf = "
<<
qf
<<
"\n"
;
std::cout <<
"<- rf = "
<<
rf
<<
"\n"
;
std::cout <<
"-> ellint_rf(pf, qf, rf) = "
<<
eve::ellint_rf
(
pf
,
qf
,
rf
) <<
"\n"
;
std::cout <<
"-> ellint_rf[ignore_last(2)](pf, qf, rf)= "
<<
eve::ellint_rf
[
eve::ignore_last
(2)](
pf
,
qf
,
rf
) <<
"\n"
;
std::cout <<
"-> ellint_rf[qf != 4.0f](pf, qf, rf) = "
<<
eve::ellint_rf
[
qf
!= 4.0f](
pf
,
qf
,
rf
) <<
"\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