highprecisionpso::PowOperation Class Reference
This operation calculates the power of the supplied value to a given exponent. More...
#include <general_objects.h>
Inheritance diagram for highprecisionpso::PowOperation:
Public Member Functions | |
PowOperation (double exponent) | |
The constructor, where the exponent of the power calculation can be specified. More... | |
std::string | GetName () |
Returns a string representation of this object. More... | |
mpf_t * | Operate (mpf_t *value) |
Calculates the power of the supplied value to the specified exponent. More... | |
Public Member Functions inherited from highprecisionpso::Operation | |
virtual | ~Operation () |
The destructor. More... | |
Detailed Description
This operation calculates the power of the supplied value to a given exponent.
Constructor & Destructor Documentation
highprecisionpso::PowOperation::PowOperation | ( | double | exponent | ) |
The constructor, where the exponent of the power calculation can be specified.
- Parameters
-
exponent The exponent of the power calculation.
Member Function Documentation
|
virtual |
Returns a string representation of this object.
- Returns
- The name of the object.
Implements highprecisionpso::Operation.
|
virtual |
Calculates the power of the supplied value to the specified exponent.
- Parameters
-
value The value which should be operated on.
- Returns
- The power of the supplied value to the specified exponent.
Implements highprecisionpso::Operation.
The documentation for this class was generated from the following file:
- src/general/general_objects.h