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

◆ betainc_inv

auto eve::betainc_inv = functor<betainc_inv_t>
inlineconstexpr

Header file

#include <eve/module/special.hpp>

Callable Signatures

namespace eve
{
// Regular overload
constexpr auto betainc_inv(floating_value auto s,
floating_value auto x, floating_value auto y) noexcept; // 1
// Lanes masking
constexpr auto betainc_inv[conditional_expr auto c](floating_value auto s,
floating_value auto x, floating_value auto y) noexcept; // 2
constexpr auto betainc_inv[logical_value auto m](floating_value auto s,
floating_value auto x, floating_value auto y) 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 betainc_inv
elementwise_callable object computing the inverse relative to the first parameter of the beta incompl...
Definition betainc_inv.hpp:84
EVE Main Namespace.
Definition abi.hpp:18

Parameters

Return value

  1. The value of the inverse of the incomplete beta function is returned.
  2. The operation is performed conditionnaly.

External references

Example

// revision 1
#include <eve/module/special.hpp>
#include <iostream>
int main()
{
eve::wide pf = { 0.0f, 0.1f, 0.5f, 2.0f};
eve::wide qf = { 1.0f, 1.0f, 3.0f, 5.0f};
eve::wide rf = { 4.0f, 2.0f, 1.0f, 0.2f};
std::cout << "<- pf = " << pf << '\n';
std::cout << "<- qf = " << qf << '\n';
std::cout << "<- rf = " << rf << '\n';
std::cout << "-> betainc_inv(pf, qf, rf) = " << eve::betainc_inv(pf, qf, rf) << '\n';
std::cout << "-> betainc_inv[ignore_last(2)](pf, qf, rf) = " << eve::betainc_inv[eve::ignore_last(2)](pf, qf, rf) << '\n';
std::cout << "-> betainc_inv[rf != 0.2f](pf, qf, rf) = " << eve::betainc_inv[rf != 0.2](pf, qf, rf) << '\n';
}
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition conditional.hpp:332
Wrapper for SIMD registers.
Definition wide.hpp:86