24#ifndef OLB_OALGORITHM_H
25#define OLB_OALGORITHM_H
39 return std::max(a, b);
41template<
typename T,
class Compare >
44 return std::max(a, b, comp);
47constexpr T
inline max( std::initializer_list<T> ilist )
49 return std::max(ilist);
51template<
typename T,
class Compare >
52inline constexpr T
max( std::initializer_list<T> ilist, Compare comp )
54 return std::max(ilist, comp);
60 return std::fmax(x, y);
66 return std::fmax(x, y);
73 return std::min(a, b);
75template<
typename T,
class Compare >
78 return std::min(a, b, comp);
81inline constexpr T
min( std::initializer_list<T> ilist )
83 return std::min(ilist);
85template<
typename T,
class Compare >
86inline constexpr T
min( std::initializer_list<T> ilist, Compare comp )
88 return std::min(ilist, comp);
94 return std::fmin(x, y);
100 return std::fmin(x, y);
cpu::simd::Pack< T > min(cpu::simd::Pack< T > rhs, cpu::simd::Pack< T > lhs)
double min< double >(double x, double y) any_platform
float max< float >(float x, float y) any_platform
cpu::simd::Pack< T > max(cpu::simd::Pack< T > rhs, cpu::simd::Pack< T > lhs)
float min< float >(float x, float y) any_platform
double max< double >(double x, double y) any_platform
Top level namespace for all of OpenLB.