35#ifndef _BLAZE_MATH_FUNCTORS_TANH_H_
36#define _BLAZE_MATH_FUNCTORS_TANH_H_
88 template<
typename T >
91 return tanh( std::forward<T>( a ) );
100 template<
typename T >
118 template<
typename T >
139template<
typename T >
140struct YieldsUniform<Tanh,T>
141 :
public IsUniform<T>
157template<
typename MT >
175template<
typename MT >
193template<
typename MT >
211template<
typename MT >
229template<
typename MT >
247template<
typename MT >
265template<
typename T >
Header file for the HasSIMDTanh type trait.
Macro for CUDA compatibility.
Header file for the IsHermitian type trait.
Header file for the IsLower type trait.
Header file for the IsStrictlyLower type trait.
Header file for the IsStrictlyUpper type trait.
Header file for the IsSymmetric type trait.
Header file for the IsUpper type trait.
Header file for the YieldsHermitian type trait.
Header file for the YieldsLower type trait.
Header file for the YieldsStrictlyLower type trait.
Header file for the YieldsStrictlyUpper type trait.
Header file for the YieldsSymmetric type trait.
Header file for the YieldsUpper type trait.
Header file for the YieldsZero type trait.
Constraint on the data type.
decltype(auto) tanh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic tangent for each single element of the dense matrix dm.
Definition DMatMapExpr.h:2336
#define BLAZE_CONSTRAINT_MUST_BE_SIMD_PACK(T)
Constraint on the data type.
Definition SIMDPack.h:60
constexpr bool HasSIMDTanh_v
Auxiliary variable template for the HasSIMDTanh type trait.
Definition HasSIMDTanh.h:119
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition Inline.h:85
#define BLAZE_DEVICE_CALLABLE
Conditional macro that sets host and device attributes when compiled with CUDA.
Definition HostDevice.h:94
Header file for the tanh shim.
Header file for the SIMD hyperbolic tangent functionality.
Compile time check for Hermitian matrices.
Definition IsHermitian.h:115
Compile time check for lower triangular matrices.
Definition IsLower.h:118
Compile time check for strictly lower triangular matrices.
Definition IsStrictlyLower.h:116
Compile time check for strictly upper triangular matrices.
Definition IsStrictlyUpper.h:116
Compile time check for symmetric matrices.
Definition IsSymmetric.h:115
Compile time check for upper triangular matrices.
Definition IsUpper.h:118
Compile time check for zero vectors or matrices.
Definition IsZero.h:109
Generic wrapper for the tanh() function.
Definition Tanh.h:81
static constexpr bool simdEnabled()
Returns whether SIMD is enabled for the specified data type T.
Definition Tanh.h:101
BLAZE_ALWAYS_INLINE decltype(auto) load(const T &a) const
Returns the result of the tanh() function for the given SIMD vector.
Definition Tanh.h:119
static constexpr bool paddingEnabled()
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
Definition Tanh.h:109
Compile time check for operations on matrices.
Definition YieldsHermitian.h:67
Compile time check for operations on matrices.
Definition YieldsLower.h:69
Compile time check for operations on matrices.
Definition YieldsStrictlyLower.h:67
Compile time check for operations on matrices.
Definition YieldsStrictlyUpper.h:67
Compile time check for operations on matrices.
Definition YieldsSymmetric.h:67
Compile time check for operations on matrices.
Definition YieldsUpper.h:69
Compile time check for operations on vectors and matrices.
Definition YieldsZero.h:68
System settings for the inline keywords.
Header file for the IsZero type trait.