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

◆ ellint_rj

auto eve::ellint_rj = functor<ellint_rj_t>
inlineconstexpr

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, floating_value auto p) noexcept; // 1
// Lanes masking
constexpr auto ellint_rf[conditional_expr auto c](floating_value auto x, floating_value auto y,
floating_value auto z, floating_value auto p) noexcept; // 2
constexpr auto ellint_rf[logical_value auto m](floating_value auto x, floating_value auto y,
floating_value auto z, floating_value auto p) 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 ellint_rf
Computes the Carlson's elliptic integral .
Definition ellint_rf.hpp:86
EVE Main Namespace.
Definition abi.hpp:18

Parameters

Return value

  1. the value of the \(\mathbf{R}_\mathbf{J}\) Carlson elliptic integral: \( \frac32 \int_{0}^{\infty} \scriptstyle(t+p)^{-1}[(t+x)(t+y)(t+z)]^{-1/2}\;\mathrm{d}t\) is returned.
  2. The operation is performed conditionnaly

External references

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};
eve::wide sf{0.19f, 0.5f, 0.87071f, 2.4f};
int main()
{
std::cout << "<- pf = " << pf << "\n";
std::cout << "<- qf = " << qf << "\n";
std::cout << "<- rf = " << rf << "\n";
std::cout << "<- sf = " << sf << "\n";
std::cout << "-> ellint_rj(pf, qf, rf, sf) = " << eve::ellint_rj(pf, qf, rf, sf) << "\n";
std::cout << "-> ellint_rj[ignore_last(2)](pf, qf, rf, sf)= " << eve::ellint_rj[eve::ignore_last(2)](pf, qf, rf, sf) << "\n";
std::cout << "-> ellint_rj[qf != 4.0f](pf, qf, rf, sf) = " << eve::ellint_rj[qf != 4.0f](pf, qf, rf, sf) << "\n";
}
constexpr auto ellint_rj
Computes the Carlson's elliptic integral .
Definition ellint_rj.hpp:91
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition conditional.hpp:332
Wrapper for SIMD registers.
Definition wide.hpp:70