aGrUM  0.20.2
a C++ library for (probabilistic) graphical models
gum::Minimizes< GUM_SCALAR > Struct Template Reference

Minimization function object classReturns the minimum of its two arguments. More...

#include <agrum/tools/core/functors.h>

Public Member Functions

Operator()
GUM_SCALAR operator() (const GUM_SCALAR &x, const GUM_SCALAR &y) const
 

Public Types

typedef GUM_SCALAR first_argument_type
 
typedef GUM_SCALAR second_argument_type
 
typedef GUM_SCALAR result_type
 

Detailed Description

template<class GUM_SCALAR>
struct gum::Minimizes< GUM_SCALAR >

Minimization function object class

Returns the minimum of its two arguments.

Definition at line 80 of file functors.h.

Member Typedef Documentation

◆ first_argument_type

template<class GUM_SCALAR >
typedef GUM_SCALAR gum::Minimizes< GUM_SCALAR >::first_argument_type

Definition at line 92 of file functors.h.

◆ result_type

template<class GUM_SCALAR >
typedef GUM_SCALAR gum::Minimizes< GUM_SCALAR >::result_type

Definition at line 94 of file functors.h.

◆ second_argument_type

template<class GUM_SCALAR >
typedef GUM_SCALAR gum::Minimizes< GUM_SCALAR >::second_argument_type

Definition at line 93 of file functors.h.

Member Function Documentation

◆ operator()()

template<class GUM_SCALAR >
GUM_SCALAR gum::Minimizes< GUM_SCALAR >::operator() ( const GUM_SCALAR &  x,
const GUM_SCALAR &  y 
) const
inline

Definition at line 86 of file functors.h.

86  {
87  return x <= y ? x : y;
88  }

The documentation for this struct was generated from the following file: