35 #ifndef _BLAZE_MATH_FUNCTORS_TANH_H_ 36 #define _BLAZE_MATH_FUNCTORS_TANH_H_ 93 template<
typename T >
105 template<
typename T >
123 template<
typename T >
144 template<
typename T >
145 struct YieldsUniform<Tanh,T>
146 :
public IsUniform<T>
162 template<
typename MT >
163 struct YieldsSymmetric<Tanh,MT>
164 :
public IsSymmetric<MT>
180 template<
typename MT >
181 struct YieldsHermitian<Tanh,MT>
182 :
public IsHermitian<MT>
198 template<
typename MT >
199 struct YieldsLower<Tanh,MT>
216 template<
typename MT >
217 struct YieldsStrictlyLower<Tanh,MT>
218 :
public IsStrictlyLower<MT>
234 template<
typename MT >
235 struct YieldsUpper<Tanh,MT>
252 template<
typename MT >
253 struct YieldsStrictlyUpper<Tanh,MT>
254 :
public IsStrictlyUpper<MT>
270 template<
typename T >
271 struct YieldsZero<Tanh,T>
Tanh()
Default constructor of the Tanh functor.
Definition: Tanh.h:83
Header file for the YieldsStrictlyLower type trait.
Header file for the YieldsZero type trait.
Header file for the SIMD hyperbolic tangent functionality.
#define BLAZE_CONSTRAINT_MUST_BE_SIMD_PACK(T)
Constraint on the data type.In case the given data type T is not a SIMD pack, a compilation error is ...
Definition: SIMDPack.h:60
Header file for the IsStrictlyUpper type trait.
Header file for the IsSymmetric type trait.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
Header file for the YieldsStrictlyUpper type trait.
Header file for the IsLower type trait.
static constexpr bool paddingEnabled()
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
Definition: Tanh.h:114
Constraint on the data type.
Header file for the IsStrictlyLower type trait.
decltype(auto) tanh(const DenseMatrix< MT, SO > &dm)
Computes the hyperbolic tangent for each single element of the dense matrix dm.
Definition: DMatMapExpr.h:2128
Header file for the YieldsSymmetric type trait.
Header file for the YieldsUpper type trait.
Header file for the IsZero type trait.
Header file for the YieldsLower type trait.
Header file for the HasSIMDTanh type trait.
Header file for the tanh shim.
decltype(auto) BLAZE_ALWAYS_INLINE load(const T &a) const
Returns the result of the tanh() function for the given SIMD vector.
Definition: Tanh.h:124
static constexpr bool simdEnabled()
Returns whether SIMD is enabled for the specified data type T.
Definition: Tanh.h:106
Header file for the IsUpper type trait.
Header file for the YieldsHermitian type trait.
Generic wrapper for the tanh() function.
Definition: Tanh.h:78
Header file for the IsHermitian type trait.
System settings for the inline keywords.