35 #ifndef _BLAZE_MATH_FUNCTORS_MIN_H_ 36 #define _BLAZE_MATH_FUNCTORS_MIN_H_ 95 template<
typename T1,
typename T2 >
107 template<
typename T1,
typename T2 >
108 static constexpr
bool simdEnabled() {
return HasSIMDMin_v<T1,T2>; }
126 template<
typename T1,
typename T2 >
148 template<
typename T1,
typename T2 >
149 struct YieldsUniform<Min,T1,T2>
150 :
public BoolConstant< IsUniform_v<T1> && IsUniform_v<T2> >
166 template<
typename MT1,
typename MT2 >
167 struct YieldsSymmetric<Min,MT1,MT2>
168 :
public BoolConstant< IsSymmetric_v<MT1> && IsSymmetric_v<MT2> >
184 template<
typename MT1,
typename MT2 >
185 struct YieldsLower<Min,MT1,MT2>
186 :
public BoolConstant< IsLower_v<MT1> && IsLower_v<MT2> >
202 template<
typename MT1,
typename MT2 >
203 struct YieldsUniLower<Min,MT1,MT2>
204 :
public BoolConstant< IsUniLower_v<MT1> && IsUniLower_v<MT2> >
220 template<
typename MT1,
typename MT2 >
221 struct YieldsStrictlyLower<Min,MT1,MT2>
222 :
public BoolConstant< ( IsStrictlyLower_v<MT1> && ( IsStrictlyLower_v<MT2> || IsUniLower_v<MT2> ) ) ||
223 ( IsStrictlyLower_v<MT2> && ( IsStrictlyLower_v<MT1> || IsUniLower_v<MT1> ) ) >
239 template<
typename MT1,
typename MT2 >
240 struct YieldsUpper<Min,MT1,MT2>
241 :
public BoolConstant< IsUpper_v<MT1> && IsUpper_v<MT2> >
257 template<
typename MT1,
typename MT2 >
258 struct YieldsUniUpper<Min,MT1,MT2>
259 :
public BoolConstant< IsUniUpper_v<MT1> && IsUniUpper_v<MT2> >
275 template<
typename MT1,
typename MT2 >
276 struct YieldsStrictlyUpper<Min,MT1,MT2>
277 :
public BoolConstant< ( IsStrictlyUpper_v<MT1> && ( IsStrictlyUpper_v<MT2> || IsUniUpper_v<MT2> ) ) ||
278 ( IsStrictlyUpper_v<MT2> && ( IsStrictlyUpper_v<MT1> || IsUniUpper_v<MT1> ) ) >
Headerfile for the generic min algorithm.
static constexpr bool paddingEnabled()
Returns whether the operation supports padding, i.e. whether it can deal with zeros.
Definition: Min.h:116
Header file for the IsUniUpper type trait.
Header file for the SIMD min functionality.
Header file for the YieldsStrictlyLower 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.
Min()
Default constructor of the Min functor.
Definition: Min.h:84
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.
decltype(auto) min(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise minimum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1147
Header file for the YieldsUniLower type trait.
Header file for the IsLower type trait.
Constraint on the data type.
Header file for the IsStrictlyLower type trait.
Header file for the HasSIMDMin type trait.
Header file for the YieldsSymmetric type trait.
Header file for the YieldsUpper type trait.
Header file for the YieldsLower type trait.
IntegralConstant< bool, B > BoolConstant
Generic wrapper for a compile time constant boolean value.The BoolConstant class template represents ...
Definition: IntegralConstant.h:101
Generic wrapper for the min() function.
Definition: Min.h:79
static constexpr bool simdEnabled()
Returns whether SIMD is enabled for the specified data types T1 and T2.
Definition: Min.h:108
decltype(auto) BLAZE_ALWAYS_INLINE load(const T1 &a, const T2 &b) const
Returns the result of the min() function for the given SIMD vectors.
Definition: Min.h:127
Header file for the IntegralConstant class template.
Header file for the IsUpper type trait.
Header file for the YieldsUniUpper type trait.
System settings for the inline keywords.