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

◆ betainc

eve::betainc = functor<betainc_t>
inlineconstexpr

Defined in header

#include <eve/module/special.hpp>

Callable Signatures

namespace eve
{
// Regular overload
constexpr auto betainc(floating_value auto s,
floating_value auto x, floating_value auto y) noexcept; // 1
// Lanes masking
constexpr auto betainc[conditional_expr auto c](floating_value auto s,
floating_value auto x, floating_value auto y) noexcept; // 2
constexpr auto betainc[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:27
The concept floating_value<T> is satisfied if and only if T satisfies eve::value and the element type...
Definition: value.hpp:95
The concept logical_value<T> is satisfied if and only if T satisfies eve::value and the element type ...
Definition: value.hpp:107
constexpr auto betainc
Computes the betainc incomplete function. .
Definition: betainc.hpp:81
EVE Main Namespace.
Definition: abi.hpp:18

Parameters

Return value

The value of the incomplete betainc function is returned.

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(pf, qf, rf) = " << eve::betainc(pf, qf, rf) << '\n';
std::cout << "-> betainc[ignore_last(2)](pf, qf, rf) = " << eve::betainc[eve::ignore_last(2)](pf, qf, rf) << '\n';
std::cout << "-> betainc[rf != 0.2f](pf, qf, rf) = " << eve::betainc[rf != 0.2](pf, qf, rf) << '\n';
}
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition: conditional.hpp:304
Wrapper for SIMD registers.
Definition: wide.hpp:71