E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
betainc_inv
auto eve::betainc_inv =
functor
<betainc_inv_t>
inline
constexpr
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
}
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:132
eve::betainc_inv
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
EVE Main Namespace.
Definition
abi.hpp:18
Parameters
s
:
floating value
. \( s \in [0, 1]\)
x
, 'y':
strictly positive floating values
.
c
:
Conditional expression
masking the operation.
m
:
Logical value
masking the operation.
Return value
The value of the inverse of the incomplete beta function is returned.
The operation is performed conditionnaly
.
External references
DLMF
[Wolfram MathWorld](
https://mathworld.wolfram.com/IncompleteBetaFunction.html
Wikipedia
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'
;
}
eve::ignore_last
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition
conditional.hpp:332
eve::wide
Wrapper for SIMD registers.
Definition
wide.hpp:86
eve