|
|
| std::string | rationalToString (const Rational &r, const int precision) |
| | convert rational number to string
|
| |
| bool | readStringRational (const char *s, Rational &value) |
| | read Rational from string
|
| |
| std::ostream & | operator<< (std::ostream &os, const Rational &r) |
| | print Rational
|
| |
|
| int | compareRational (const Rational &r, const Rational &s) |
| | comparison operator returning a positive value if r > s, zero if r = s, and a negative value if r < s
|
| |
| bool | operator== (const Rational &r, const Rational &s) |
| | equality operator
|
| |
| bool | operator!= (const Rational &r, const Rational &s) |
| | inequality operator
|
| |
| bool | operator< (const Rational &r, const Rational &s) |
| | less than operator
|
| |
| bool | operator<= (const Rational &r, const Rational &s) |
| | less than or equal to operator
|
| |
| bool | operator> (const Rational &r, const Rational &s) |
| | greater than operator
|
| |
| bool | operator>= (const Rational &r, const Rational &s) |
| | greater than or equal to operator
|
| |
| bool | operator== (const Rational &r, const double &s) |
| | equality operator for Rational and double
|
| |
| bool | operator!= (const Rational &r, const double &s) |
| | inequality operator for Rational and double
|
| |
| bool | operator< (const Rational &r, const double &s) |
| | less than operator for Rational and double
|
| |
| bool | operator<= (const Rational &r, const double &s) |
| | less than or equal to operator for Rational and double
|
| |
| bool | operator> (const Rational &r, const double &s) |
| | greater than operator for Rational and double
|
| |
| bool | operator>= (const Rational &r, const double &s) |
| | greater than or equal to operator for Rational and double
|
| |
| bool | operator== (const double &r, const Rational &s) |
| | equality operator for double and Rational
|
| |
| bool | operator!= (const double &r, const Rational &s) |
| | inequality operator double and Rational
|
| |
| bool | operator< (const double &r, const Rational &s) |
| | less than operator double and Rational
|
| |
| bool | operator<= (const double &r, const Rational &s) |
| | less than or equal to operator double and Rational
|
| |
| bool | operator> (const double &r, const Rational &s) |
| | greater than operator double and Rational
|
| |
| bool | operator>= (const double &r, const Rational &s) |
| | greater than or equal to operator double and Rational
|
| |
| bool | operator== (const Rational &r, const long double &s) |
| | equality operator for Rational and long double
|
| |
| bool | operator!= (const Rational &r, const long double &s) |
| | inequality operator for Rational and long double
|
| |
| bool | operator< (const Rational &r, const long double &s) |
| | less than operator for Rational and long double
|
| |
| bool | operator<= (const Rational &r, const long double &s) |
| | less than or equal to operator for Rational and long double
|
| |
| bool | operator> (const Rational &r, const long double &s) |
| | greater than operator for Rational and long double
|
| |
| bool | operator>= (const Rational &r, const long double &s) |
| | greater than or equal to operator for Rational and long double
|
| |
| bool | operator== (const long double &r, const Rational &s) |
| | equality operator for long double and Rational
|
| |
| bool | operator!= (const long double &r, const Rational &s) |
| | inequality operator long double and Rational
|
| |
| bool | operator< (const long double &r, const Rational &s) |
| | less than operator long double and Rational
|
| |
| bool | operator<= (const long double &r, const Rational &s) |
| | less than or equal to operator long double and Rational
|
| |
| bool | operator> (const long double &r, const Rational &s) |
| | greater than operator long double and Rational
|
| |
| bool | operator>= (const long double &r, const Rational &s) |
| | greater than or equal to operator long double and Rational
|
| |
| bool | operator== (const Rational &r, const int &s) |
| | equality operator for Rational and int
|
| |
| bool | operator!= (const Rational &r, const int &s) |
| | inequality operator for Rational and int
|
| |
| bool | operator< (const Rational &r, const int &s) |
| | less than operator for Rational and int
|
| |
| bool | operator<= (const Rational &r, const int &s) |
| | less than or equal to operator for Rational and int
|
| |
| bool | operator> (const Rational &r, const int &s) |
| | greater than operator for Rational and int
|
| |
| bool | operator>= (const Rational &r, const int &s) |
| | greater than or equal to operator for Rational and int
|
| |
| bool | operator== (const int &r, const Rational &s) |
| | equality operator for int and Rational
|
| |
| bool | operator!= (const int &r, const Rational &s) |
| | inequality operator for int and Rational
|
| |
| bool | operator< (const int &r, const Rational &s) |
| | less than operator for int and Rational
|
| |
| bool | operator<= (const int &r, const Rational &s) |
| | less than or equal to operator for int and Rational
|
| |
| bool | operator> (const int &r, const Rational &s) |
| | greater than operator for int and Rational
|
| |
| bool | operator>= (const int &r, const Rational &s) |
| | greater than or equal to operator for int and Rational
|
| |
|
| Rational | operator+ (const double &d, const Rational &r) |
| | addition operator for double and Rational
|
| |
| Rational | operator+ (const int &d, const Rational &r) |
| | addition operator for int and Rational
|
| |
| Rational | spxAbs (const Rational &r) |
| | Absolute.
|
| |
| int | sign (const Rational &r) |
| | Sign function; returns 1 if r > 0, 0 if r = 0, and -1 if r < 0.
|
| |
| Rational | operator- (const Rational &r) |
| | Negation.
|
| |
| int | totalSizeRational (const Rational *vector, const int length, const int base) |
| | Total size of rational vector.
|
| |
| int | dlcmSizeRational (const Rational *vector, const int length, const int base) |
| | Size of least common multiple of denominators in rational vector.
|
| |
| int | dmaxSizeRational (const Rational *vector, const int length, const int base) |
| | Size of largest denominator in rational vector.
|
| |
Wrapper for GMP types.
Definition in file rational.h.