Rational number types. More...
#include <numeric>#include <vector>#include <string>#include "soplex/spxdefines.h"#include <gmp.h>Go to the source code of this file.
Classes | |
| class | Rational |
Namespaces | |
| namespace | soplex |
| Everything should be within this namespace. | |
Typedefs | |
| using | Integer = int |
Functions | |
| Integer | numerator (const Rational &r) |
| Integer | denominator (const Rational &r) |
| Rational | ratFromString (const char *desc) |
| int | orderOfMagnitude (Rational &r) |
| void | SpxLcm (Integer &result, Integer a, Integer b) |
| void | SpxGcd (Integer &result, Integer a, Integer b) |
| void | divide_qr (Integer &result, Integer &result2, Integer a, Integer b) |
| void | invert (Rational &r) |
| void | powRound (Rational &r) |
| int | sizeInBase (const Rational R, const int base) |
| Size in specified base (bit size for base 2) More... | |
| int | totalSizeRational (const Rational *vector, const int length, const int base) |
| Total size of rational vector. More... | |
| int | dlcmSizeRational (const Rational *vector, const int length, const int base) |
| Size of least common multiple of denominators in rational vector. More... | |
| int | dmaxSizeRational (const Rational *vector, const int length, const int base) |
| Size of largest denominator in rational vector. More... | |
Rational number types.
Definition in file rational.h.
| using Integer = int |
Definition at line 251 of file rational.h.
Definition at line 968 of file rational.h.
References Rational::rationalErrorMessage().
Referenced by soplex::dlcmSizeRational(), soplex::dmaxSizeRational(), soplex::sizeInBase(), SoPlex_getRowBoundsRational(), and SoPlex_getRowVectorRational().
Definition at line 984 of file rational.h.
| void invert | ( | Rational & | r | ) |
Definition at line 985 of file rational.h.
References Rational::rationalErrorMessage().
Definition at line 963 of file rational.h.
References Rational::rationalErrorMessage().
Referenced by soplex::sizeInBase(), SoPlex_getRowBoundsRational(), and SoPlex_getRowVectorRational().
| int orderOfMagnitude | ( | Rational & | r | ) |
Definition at line 977 of file rational.h.
References Rational::rationalErrorMessage().
| void powRound | ( | Rational & | r | ) |
Definition at line 989 of file rational.h.
References Rational::rationalErrorMessage().
| Rational ratFromString | ( | const char * | desc | ) |
Definition at line 973 of file rational.h.
Definition at line 983 of file rational.h.
Definition at line 982 of file rational.h.
Referenced by soplex::dlcmSizeRational().