◆ sinhcosh
Callable object performing the simultaneous computations of sinh and cosh. Required header: Members Functions
Definition: value.hpp:83 Parameters
Return value Returns the elementwise pair of values containing the hyperbolic sine and the hyperbolic cosine of the input. auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::sinhcosh Parameters
Return value A Callable object so that the expression Supported decoratorsno decorators are supported ExampleSee it live on Compiler Explorer #include <eve/function/sinhcosh.hpp>
#include <eve/wide.hpp>
#include <eve/constant/mindenormal.hpp>
#include <eve/constant/minf.hpp>
#include <eve/constant/inf.hpp>
#include <eve/constant/nan.hpp>
#include <iostream>
using wide_ft = eve::wide<double, eve::fixed<8>>;
int main()
{
wide_ft pf = {-1.0f, 0.0f, 367.0f, -1005600.0f, eve::mindenormal(eve::as<double>()),
auto [s, c] = eve::sinhcosh(pf);
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "-> sinhcosh(pf) = [" << '\n'
<< " " << s << ", \n"
<< " " << c << '\n'
<< " ]\n";
float xf = 2.3;
auto [ss, sc] = eve::sinhcosh(xf);
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "-> sinhcosh(xf) = [" << ss << ", " << sc << "]\n";
return 0;
}
constexpr callable_minf_ minf Callable object computing the negative infinity value. Definition: minf.hpp:55 constexpr callable_mindenormal_ mindenormal Callable object computing the least denormal positive value. Definition: mindenormal.hpp:56 constexpr callable_inf_ inf Callable object computing the infinity ieee value. Definition: inf.hpp:54 constexpr callable_sinhcosh_ sinhcosh Callable object performing the simultaneous computations of sinh and cosh. Definition: sinhcosh.hpp:73 |