|
|
void | canonicalize () |
| |
|
int | get_sign () |
| |
|
template<typename T > |
| void | init (const T &v) |
| |
|
void | init_from_bin (const std::string &bin) |
| |
|
| Rational (double d) |
| |
|
| Rational (const mpq_t &v_) |
| |
|
| Rational (const Rational &other) |
| |
|
Rational & | operator= (const Rational &x) |
| |
|
Rational & | operator= (const double x) |
| |
|
double | to_double () const |
| |
|
| operator double () const |
| |
|
std::string | get_str () |
| |
|
std::string | get_num_str () const |
| |
|
std::string | get_den_str () const |
| |
|
|
Rational | operator+ (const Rational &x, const Rational &y) |
| |
|
Rational | operator- (const Rational &x, const Rational &y) |
| |
|
Rational | operator- (const Rational &x) |
| |
|
Rational | pow (const Rational &x, int p) |
| |
|
Rational | operator* (const Rational &x, const Rational &y) |
| |
|
Rational | operator/ (const Rational &x, const Rational &y) |
| |
|
bool | operator< (const Rational &r, const Rational &r1) |
| |
|
bool | operator> (const Rational &r, const Rational &r1) |
| |
|
bool | operator<= (const Rational &r, const Rational &r1) |
| |
|
bool | operator>= (const Rational &r, const Rational &r1) |
| |
|
bool | operator== (const Rational &r, const Rational &r1) |
| |
|
bool | operator!= (const Rational &r, const Rational &r1) |
| |
|
Rational | abs (const Rational &r0) |
| |
|
std::ostream & | operator<< (std::ostream &os, const Rational &r) |
| |
The documentation for this class was generated from the following file:
- /home/runner/work/wildmeshing-toolkit/wildmeshing-toolkit/src/wmtk/utils/Rational.hpp