#include "common/h/Types.h"#include "common/h/std_namesp.h"Go to the source code of this file.
Data Structures | |
| class | fraction |
Functions | |
| ostream & | operator<< (ostream &s, const fraction::ostream_fmt u) |
| ostream & | operator<< (ostream &s, const fraction &z) |
| COMMON_EXPORT int64_t | gcd (int64_t a, int64_t b) |
| COMMON_EXPORT int64_t | lcd (int64_t a, int64_t b) |
| double | operator* (const fraction &a, const double d) |
| double | operator* (const double d, const fraction &a) |
| const fraction | operator* (const fraction &a, int64_t b) |
| const fraction | operator* (int64_t a, const fraction &b) |
| const fraction | operator/ (const fraction &a, const fraction &b) |
| bool | operator== (const fraction &a, const fraction &b) |
| bool | operator!= (const fraction &a, const fraction &b) |
| void | getFrSpec (int64_t n, int64_t d, double *ra, double *rb, int *rsign) |
| bool | operator> (const fraction &a, const fraction &b) |
| bool | operator< (const fraction &a, const fraction &b) |
| bool | operator>= (const fraction &a, const fraction &b) |
| bool | operator<= (const fraction &a, const fraction &b) |
Definition at line 57 of file fraction.C.
References gcd().
Referenced by gcd(), lcd(), and fraction::reduce().
Definition at line 131 of file fraction.C.
References I64_C.
Referenced by operator<(), and operator>().
Definition at line 48 of file fraction.C.
Definition at line 190 of file fraction.h.
References fraction::getDenom(), fraction::getNumer(), and fraction::reduce().
Definition at line 164 of file fraction.h.
Definition at line 83 of file fraction.C.
References fraction::getDenom(), fraction::getFinalMultOverflowPt(), fraction::getInterimMultOverflowPt(), fraction::getNumer(), and I64_MAX.
| double operator* | ( | const double | d, | |
| const fraction & | a | |||
| ) | [inline] |
Definition at line 155 of file fraction.h.
| double operator* | ( | const fraction & | a, | |
| const double | d | |||
| ) | [inline] |
Definition at line 151 of file fraction.h.
References fraction::getD().
Definition at line 179 of file fraction.h.
References fraction::getDenom(), and fraction::getNumer().
Definition at line 157 of file fraction.C.
References fraction::getDenom(), getFrSpec(), and fraction::getNumer().
| ostream& operator<< | ( | ostream & | s, | |
| const fraction & | z | |||
| ) |
Definition at line 183 of file fraction.C.
References fraction::curFmt, fraction::getDenom(), fraction::getFinalMultOverflowPt(), fraction::getInterimMultOverflowPt(), fraction::getNumer(), and fraction::sparse.
| ostream& operator<< | ( | ostream & | s, | |
| const fraction::ostream_fmt | u | |||
| ) |
Definition at line 178 of file fraction.C.
References fraction::curFmt.
Definition at line 174 of file fraction.C.
Definition at line 183 of file fraction.h.
References fraction::getDenom(), fraction::getNumer(), and fraction::reduce().
Definition at line 144 of file fraction.C.
References fraction::getDenom(), getFrSpec(), and fraction::getNumer().
Definition at line 170 of file fraction.C.
1.6.1