Hyperbolic functions

template<class B>
inline batch_type_t<B> xsimd::sinh(const simd_base<B> &x)

Computes the hyperbolic sine of the batch x.

Parameters

x – batch of floating point values.

Returns

the hyperbolic sine of x.

template<class B>
inline batch_type_t<B> xsimd::cosh(const simd_base<B> &x)

Computes the hyperbolic cosine of the batch x.

Parameters

x – batch of floating point values.

Returns

the hyperbolic cosine of x.

template<class B>
inline batch_type_t<B> xsimd::tanh(const simd_base<B> &x)

Computes the hyperbolic tangent of the batch x.

Parameters

x – batch of floating point values.

Returns

the hyperbolic tangent of x.

template<class B>
inline batch_type_t<B> xsimd::asinh(const simd_base<B> &x)

Computes the inverse hyperbolic sine of the batch x.

Parameters

x – batch of floating point values.

Returns

the inverse hyperbolic sine of x.

template<class B>
inline batch_type_t<B> xsimd::acosh(const simd_base<B> &x)

Computes the inverse hyperbolic cosine of the batch x.

Parameters

x – batch of floating point values.

Returns

the inverse hyperbolic cosine of x.

template<class B>
inline batch_type_t<B> xsimd::atanh(const simd_base<B> &x)

Computes the inverse hyperbolic tangent of the batch x.

Parameters

x – batch of floating point values.

Returns

the inverse hyperbolic tangent of x.