30 auto slope(
const std::string& from,
const std::string& to) -> double;
36 auto intercept(
const std::string& from,
const std::string& to) -> double;
40 auto convertible(
const std::string& from,
const std::string& to) -> bool;
48 auto convert(
const T& value,
const std::string& from,
const std::string& to) -> T
50 return (from == to) ? value : value * slope(from, to) + intercept(from, to);
58 auto seconds(
const T& value,
const std::string& from) -> T
60 return convert(value, from,
"s");
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29