highprecisionpso::SpecificIdReduceOperation Class Reference

This vector reduce operation reduces a vector by ignoring all values of the vector except the specified one. More...

#include <general_objects.h>

Inheritance diagram for highprecisionpso::SpecificIdReduceOperation:

Public Member Functions

 SpecificIdReduceOperation (int id)
 The constructor, where the remaining index can be specified. More...
 
mpf_t * Evaluate (const std::vector< mpf_t * > &vec)
 Reduces the vector by ignoring all entries except the specified one. More...
 
std::string GetName ()
 Returns a string representation of this object. More...
 
- Public Member Functions inherited from highprecisionpso::VectorReduceOperation
virtual ~VectorReduceOperation ()
 The destructor. More...
 

Detailed Description

This vector reduce operation reduces a vector by ignoring all values of the vector except the specified one.

Constructor & Destructor Documentation

highprecisionpso::SpecificIdReduceOperation::SpecificIdReduceOperation ( int  id)

The constructor, where the remaining index can be specified.

Parameters
idThe remaining index.

Member Function Documentation

mpf_t* highprecisionpso::SpecificIdReduceOperation::Evaluate ( const std::vector< mpf_t * > &  vec)
virtual

Reduces the vector by ignoring all entries except the specified one.

Parameters
vecThe vector which should be reduced.
Returns
The value of the entry at the specified position.

Implements highprecisionpso::VectorReduceOperation.

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

Returns a string representation of this object.

Returns
The name of the object.

Implements highprecisionpso::VectorReduceOperation.


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