E.V.E
v2023.02.15

◆ betainc_inv

eve::betainc_inv = {}
inlineconstexpr

Computes the inverse relative to the first parameter of the beta incomplete function.

Defined in header

#include <eve/module/special.hpp>

Callable Signatures

namespace eve
{
eve:common_value_t<S, T, U> betainc_inv(S s, T x, U y) noexcept;
}
Definition: value.hpp:114
constexpr callable_betainc_inv_ betainc_inv
Computes the inverse relative to the first parameter of the beta incomplete function.
Definition: betainc_inv.hpp:54
Definition: abi.hpp:18
typename eve::detail::common_value_impl< void, Ts... >::type common_value_t
Computes the SIMD-compatible common type between all Ts.
Definition: common_value.hpp:50

Parameters

Return value

The value of inverse of incomplete beta function relative to the first parameter is returned.

Example

#include <eve/module/special.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = { 0.0f, 0.1f, 0.5f, 2.0f};
wide_ft qf = { 1.0f, 1.0f, 3.0f, 5.0f};
wide_ft rf = { 4.0f, 2.0f, 1.0f, 0.2f};
std::cout
<< "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "<- qf = " << qf << '\n'
<< "<- rf = " << rf << '\n'
<< "-> betainc_inv(pf, qf, rf) = " << eve::betainc_inv(pf, qf, rf) << '\n';
float xf = 0.2f;
float yf = 0.5f;
float zf = 2.0f;
std::cout
<< "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "<- yf = " << yf << '\n'
<< "<- zf = " << zf << '\n'
<< "-> betainc_inv(xf, yf, zf) = " << eve::betainc_inv(xf, yf, zf) << '\n';
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65