35 #ifndef _BLAZE_MATH_FUNCTORS_TRUNC_H_ 36 #define _BLAZE_MATH_FUNCTORS_TRUNC_H_ 89 template<
typename T >
101 template<
typename T >
119 template<
typename T >
140 template<
typename T >
141 struct YieldsUniform<Trunc,T>
142 :
public IsUniform<T>
158 template<
typename MT >
159 struct YieldsSymmetric<Trunc,MT>
160 :
public IsSymmetric<MT>
176 template<
typename MT >
177 struct YieldsLower<Trunc,MT>
194 template<
typename MT >
195 struct YieldsUniLower<Trunc,MT>
196 :
public IsUniLower<MT>
212 template<
typename MT >
213 struct YieldsStrictlyLower<Trunc,MT>
214 :
public IsStrictlyLower<MT>
230 template<
typename MT >
231 struct YieldsUpper<Trunc,MT>
248 template<
typename MT >
249 struct YieldsUniUpper<Trunc,MT>
250 :
public IsUniUpper<MT>
266 template<
typename MT >
267 struct YieldsStrictlyUpper<Trunc,MT>
268 :
public IsStrictlyUpper<MT>
284 template<
typename T >
285 struct YieldsZero<Trunc,T>
Generic wrapper for the trunc() function.
Definition: Trunc.h:81
static constexpr bool paddingEnabled()
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
Definition: Trunc.h:110
Header file for the IsUniUpper type trait.
Header file for the YieldsStrictlyLower type trait.
Header file for the YieldsZero type trait.
decltype(auto) BLAZE_ALWAYS_INLINE load(const T &a) const
Returns the result of the trunc() function for the given SIMD vector.
Definition: Trunc.h:120
Header file for the SIMD trunc functionality.
Header file for the IsUniLower type trait.
#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 YieldsUniLower type trait.
decltype(auto) trunc(const DenseMatrix< MT, SO > &dm)
Applies the trunc() function to each single element of the dense matrix dm.
Definition: DMatMapExpr.h:1268
Header file for the trunc shim.
Header file for the IsLower type trait.
Constraint on the data type.
Header file for the IsStrictlyLower type trait.
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.
Macro for CUDA compatibility.
Header file for the HasSIMDTrunc type trait.
#define BLAZE_DEVICE_CALLABLE
Conditional macro that sets host and device attributes when compiled with CUDA.
Definition: HostDevice.h:94
Header file for the IsUpper type trait.
Header file for the YieldsUniUpper type trait.
static constexpr bool simdEnabled()
Returns whether SIMD is enabled for the specified data type T.
Definition: Trunc.h:102
System settings for the inline keywords.