Callable object performing the simultaneous computations of the hyperbolic sine and cosine.
{
template< eve::floating_value T >
kumi::tuple<T, T>
sinhcosh(T x)
noexcept;
template< eve::floating_value T >
as_complex_t<T>
sinhcosh(as_complex_t<T> z)
noexcept;
}
constexpr callable_sinhcosh_ sinhcosh
Callable object performing the simultaneous computations of the hyperbolic sine and cosine.
Definition: sinhcosh.hpp:58
#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "-> sinhcosh(pf) = [" << '\n'
<< " " << s << ", \n"
<< " " << c << '\n'
<< " ]\n";
float xf = 2.3;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "-> sinhcosh(xf) = [" << ss << ", " << sc << "]\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_mindenormal_ mindenormal
Computes the smallest denormal positive value.
Definition: mindenormal.hpp:59
constexpr callable_inf_ inf
Computes the infinity ieee value.
Definition: inf.hpp:58
Lightweight type-wrapper.
Definition: as.hpp:29
Wrapper for SIMD registers.
Definition: wide.hpp:65