Template Function librapid::tanh(VAL&&)#

Function Documentation#

template<class VAL>
auto librapid::tanh(VAL &&val) -> detail::Function<typetraits::DescriptorType_t<VAL>, detail::Tanh, VAL>#

Calculate the hyperbolic tangent of each element in the array.

\(R = \{ R_0, R_1, R_2, ... \} \) \text{ where } \(R_i = \tanh(A_i)\)

Template Parameters

VAL – Type of the input

Parameters

val – The input array or function

Returns

Hyperbolic tangent function object