1#ifndef SXEVAL_OPERATIONS_LOGARITHMB_HPP
2#define SXEVAL_OPERATIONS_LOGARITHMB_HPP
15 static constexpr const char*
KEY =
"logB";
39 this->_result =
static_cast<T
>(std::log(this->_args.front().get()) /
40 std::log(this->_args.back().get()));
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 LogarithmB.hpp:13
static constexpr const char * KEY
Definition LogarithmB.hpp:15
LogarithmB(const std::vector< IInstruction< T > * > &args)
Definition LogarithmB.hpp:19
void execute() override
Execute the operation.
Definition LogarithmB.hpp:38
static constexpr const int ARITY_MAX
Definition LogarithmB.hpp:17
std::string toString() const override
String representation of the instruction.
Definition LogarithmB.hpp:24
static constexpr const int ARITY_MIN
Definition LogarithmB.hpp:16
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