![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
#include <line/num/number.h>
Public Types | |
| using | type = Rational |
Static Public Member Functions | |
| static const char * | name () |
| static Rational | from_int (long v) |
| static Rational | from_rational (long num, long den) |
| static Rational | from_double (double v) |
| Exact: a double is a dyadic rational, so this conversion loses nothing. | |
| static double | to_double (const Rational &v) |
| static double | log_as_double (const Rational &v) |
| static std::string | to_string (const Rational &v) |
| static std::string | numerator_str (const Rational &v) |
| static std::string | denominator_str (const Rational &v) |
Static Public Attributes | |
| static constexpr bool | is_exact = true |
| static constexpr bool | has_transcendental = false |
| using line::num_traits< Rational >::type = Rational |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 143 of file number.h.
References line::log_bigint().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
staticconstexpr |
|
staticconstexpr |