highprecisionpso::AddOperation Class Reference

This pair combination operation reduces two values by addition. More...

#include <general_objects.h>

Inheritance diagram for highprecisionpso::AddOperation:

Public Member Functions

mpf_t * Evaluate (mpf_t *value1, mpf_t *value2)
 Reduces the two values by adding them. 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 addition.

Member Function Documentation

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

Reduces the two values by adding them.

Parameters
value1The first value which should be reduced.
value2The second value which should be reduced.
Returns
The sum of value1 and value2

Implements highprecisionpso::PairReduceOperation.

std::string highprecisionpso::AddOperation::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: