highprecisionpso::MaxOperation Class Reference

This pair combination operation reduces two values by calculation of the maximum. More...

#include <general_objects.h>

Inheritance diagram for highprecisionpso::MaxOperation:

Public Member Functions

mpf_t * Evaluate (mpf_t *value1, mpf_t *value2)
 Reduces the two values by calculation of the maximum. More...
 
std::string GetName ()
 Returns a string representation of this object. More...
 
- Public Member Functions inherited from highprecisionpso::PairReduceOperation
virtual ~PairReduceOperation ()
 The destructor. More...
 

Detailed Description

This pair combination operation reduces two values by calculation of the maximum.

Member Function Documentation

mpf_t* highprecisionpso::MaxOperation::Evaluate ( mpf_t *  value1,
mpf_t *  value2 
)
virtual

Reduces the two values by calculation of the maximum.

Parameters
value1The first value which should be reduced.
value2The second value which should be reduced.
Returns
max ( value1 , value2 )

Implements highprecisionpso::PairReduceOperation.

std::string highprecisionpso::MaxOperation::GetName ( )
virtual

Returns a string representation of this object.

Returns
The name of the object.

Implements highprecisionpso::PairReduceOperation.


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