E.V.E
v2022.09.01

◆ signgam

eve::signgam = {}
inlineconstexpr

Computes the sign of the \(\Gamma\) function.

Defined in header

#include <eve/module/special.hpp>

Callable Signatures

namespace eve
{
template< eve::floating_real_value T >
T signgam(T x) noexcept;
}
constexpr callable_signgam_ signgam
Computes the sign of the function.
Definition: signgam.hpp:49
Definition: all_of.hpp:22

Parameters

Return value

The value of eve::sign(eve::tgamma(x)) is returned (without computing eve::tgamma(x));

Example

#include <eve/module/special.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = {0.5f, -1.5f, -1.0f, 1.0f, 2.0f,
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "-> signgam(pf) = " << eve::signgam(pf) << '\n';
float xf = 4.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "-> signgam(xf) = " << eve::signgam(xf) << '\n';
return 0;
}
constexpr callable_nan_ nan
Computes the IEEE NaN constant.
Definition: nan.hpp:53
constexpr callable_minf_ minf
Computes the -infinity ieee value.
Definition: minf.hpp:60
constexpr callable_inf_ inf
Computes the infinity ieee value.
Definition: inf.hpp:58
constexpr pedantic_type const pedantic
Higher-order Callable Object imbuing more standard semantic onto other Callable Objects.
Definition: pedantic.hpp:56
Lightweight type-wrapper.
Definition: as.hpp:29
Wrapper for SIMD registers.
Definition: wide.hpp:65