1#ifndef SXEVAL_OPERATIONS_DEGREESTOGRADIANS_HPP
2#define SXEVAL_OPERATIONS_DEGREESTOGRADIANS_HPP
15 static constexpr const char*
KEY =
"deg2grad";
39 this->_result = this->_args.front().get() *
static_cast<T
>(10.0 / 9.0);
The AOperation class is an abstract base class for operations in the SXEval library.
Definition AOperation.hpp:22
The IInstruction class is an interface for any instructions.
Definition IInstruction.hpp:21
Definition DegreesToGradians.hpp:13
DegreesToGradians(const std::vector< IInstruction< T > * > &args)
Definition DegreesToGradians.hpp:19
void execute() override
Execute the operation.
Definition DegreesToGradians.hpp:38
static constexpr const char * KEY
Definition DegreesToGradians.hpp:15
static constexpr const int ARITY_MAX
Definition DegreesToGradians.hpp:17
static constexpr const int ARITY_MIN
Definition DegreesToGradians.hpp:16
std::string toString() const override
String representation of the instruction.
Definition DegreesToGradians.hpp:24
Definition AOperation.hpp:8
std::enable_if< std::is_unsigned< T >::value, T >::type Absolute(const T &a)
Perform an absolute value operation on types T.
Definition utils.hpp:262