35 #ifndef _BLAZE_UTIL_ALGORITHMS_MIN_H_ 36 #define _BLAZE_UTIL_ALGORITHMS_MIN_H_ 68 template<
typename T1,
typename T2
69 ,
typename =
EnableIf_t< ( IsSigned_v<T1> && IsSigned_v<T2> ) ||
70 ( IsUnsigned_v<T1> && IsUnsigned_v<T2> ) > >
72 min(
const T1& a,
const T2& b ) noexcept
74 return ( a < b )?( a ):( b );
91 template<
typename T1,
typename T2,
typename T3 >
93 min( const T1& a, const T2& b, const T3& c ) noexcept
97 return min(
min( a, b ), c );
115 template<
typename T1,
typename T2,
typename T3,
typename... Ts >
117 min( const T1& a, const T2& b, const T3& c, const Ts&... args ) noexcept
121 return min(
min(
min( a, b ), c ), args... );
typename EnableIf< Condition, T >::Type EnableIf_t
Auxiliary type for the EnableIf class template.The EnableIf_t alias declaration provides a convenient...
Definition: EnableIf.h:138
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
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:1162
Header file for the EnableIf class template.
Header file for the IsSigned type trait.
Header file for the IsUnsigned type trait.
System settings for the inline keywords.