◆ atanh
Callable object computing atanh: \(\frac{1}{2}\log((1+x)/(1-x))\). Required header: Members Functions
Definition: value.hpp:83 Parameters Return value Returns the elementwise inverse hyperbolic cotangent of the input. The inverse hyperbolic sine is semantically equivalent to \(\frac{1}{2}\log((1+x)/(1-x))\). In particular:
auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::atanh Parameters
Return value A Callable object so that the expression Supported decorators
ExampleSee it live on Compiler Explorer #include <eve/function/atanh.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::wide<float, eve::fixed<4>>;
int main()
{
wide_ft pf = {1.0f, 0.5f, 0.0, -0.5};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
float xf = 1.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
return 0;
}
|