37 #ifndef GUM_FUNCTORS_H 38 #define GUM_FUNCTORS_H 55 template <
class GUM_SCALAR >
62 GUM_SCALAR
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
63 return x >= y ? x : y;
80 template <
class GUM_SCALAR >
87 GUM_SCALAR
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
88 return x <= y ? x : y;
110 template <
class GUM_SCALAR >
117 GUM_SCALAR
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
118 return x.first >= y.first ? x : y;
129 #endif // GUM_FUNCTORS_H
GUM_SCALAR first_argument_type
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.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
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
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
GUM_SCALAR second_argument_type