Go to the documentation of this file.
22 #ifndef __algorithmFunctions_hpp__
23 #define __algorithmFunctions_hpp__
52 return lhs < rhs ? rhs : lhs; }
60 return lhs < rhs ? lhs : rhs; }
74 int mid = low + (high - low)/2;
76 if ( array[mid] > val)
80 else if ( array[mid] < val)
96 #endif // __algorithmFunctions_hpp__
INLINE_FUNCTION_HD bool operator()(const T &lhs, const T &rhs) const
INLINE_FUNCTION_HD int binarySearch(const T *array, int length, const T &val)
INLINE_FUNCTION_HD bool operator()(const T &lhs, const T &rhs) const
INLINE_FUNCTION_HD T length(const triple< T > &v1)
#define INLINE_FUNCTION_HD
INLINE_FUNCTION_HD bool operator()(const T &lhs, const T &rhs) const
INLINE_FUNCTION_HD bool operator()(const T &lhs, const T &rhs) const