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