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

◆ beta

auto eve::beta = functor<beta_t>
inlineconstexpr

Header file

#include <eve/module/special.hpp>

Callable Signatures

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

Parameters

Return value

  1. \(\displaystyle \mathbf{B}(x,y) = \int_0^1 t^{x-1}(1-t)^{y-1}\mbox{d}t\)
  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, 1.0f, 4.0f, 2.0f };
eve::wide qf = { 1.0f, 1.0f, 3.0f, 5.0f};
std::cout << "<- pf = " << qf << "\n";
std::cout << "<- qf = " << qf << "\n";
std::cout << "-> beta(pf, qf) = " << eve::beta(pf, qf) << "\n";
std::cout << "-> beta[ignore_last(2)](pf, qf)= " << eve::beta[eve::ignore_last(2)](pf, qf) << "\n";
std::cout << "-> beta[qf != 3.0f](pf, qf) = " << eve::beta[qf != 3.0f](pf, qf) << "\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