Skip to content

Function tanh

function tanh(const T1 &) math

template <numeric T1>
KFR_FUNCTION flt_type<T1> tanh(const T1& x)

Returns the hyperbolic tangent of x.

Computes (exp(2x) - 1) / (exp(2x) + 1) element-wise.

Parameters
x Input value or SIMD vector of values.
Returns
Hyperbolic tangent of x, with the floating-point type derived from the input.

Fully qualified name: kfr::tanh(const T1 &)

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.