35 #ifndef _BLAZE_UTIL_ALGORITHMS_MAX_H_ 36 #define _BLAZE_UTIL_ALGORITHMS_MAX_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 max(
const T1& a,
const T2& b ) noexcept
74 return ( a < b )?( b ):( a );
91 template<
typename T1,
typename T2,
typename T3 >
93 max( const T1& a, const T2& b, const T3& c ) noexcept
97 return max(
max( a, b ), c );
115 template<
typename T1,
typename T2,
typename T3,
typename... Ts >
117 max( const T1& a, const T2& b, const T3& c, const Ts&... args ) noexcept
121 return max(
max(
max( a, b ), c ), args... );
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) max(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise maximum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1179
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.