36 #ifndef GUM_FUNCTORS_H 37 #define GUM_FUNCTORS_H 41 #include <agrum/tools/core/argMaxSet.h> 54 template <
class GUM_SCALAR >
61 GUM_SCALAR
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
62 return x >= y ? x : y;
79 template <
class GUM_SCALAR >
86 GUM_SCALAR
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
87 return x <= y ? x : y;
109 template <
class GUM_SCALAR >
116 GUM_SCALAR
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
117 return x.first >= y.first ? x : y;
GUM_SCALAR first_argument_type
INLINE void emplace(Args &&... args)
GUM_SCALAR second_argument_type
GUM_SCALAR operator()(const GUM_SCALAR &x, const GUM_SCALAR &y) const
GUM_SCALAR operator()(const GUM_SCALAR &x, const GUM_SCALAR &y) const
Arg Max function object class.
Maximization function object classReturns the maximum of its two arguments.
GUM_SCALAR second_argument_type
GUM_SCALAR first_argument_type
Minimization function object classReturns the minimum of its two arguments.
GUM_SCALAR first_argument_type
GUM_SCALAR operator()(const GUM_SCALAR &x, const GUM_SCALAR &y) const
GUM_SCALAR second_argument_type