ARTS
2.2.66
|
#include <rational.h>
Public Member Functions | |
Rational () | |
Rational (const Index &n1) | |
Rational (const int &n1) | |
Rational (const Index &n1, const Index &n2) | |
Index | Nom () const |
Index | Denom () const |
bool | isUndefined () const |
Index | toIndex () const |
Numeric | toNumeric () const |
void | Simplify () |
Rational & | operator+= (const Rational &a) |
Rational & | operator-= (const Rational &a) |
Rational & | operator/= (const Rational &a) |
Rational & | operator*= (const Rational &a) |
Rational | operator++ (int) |
Rational | operator-- (int) |
Rational & | operator++ () |
Rational & | operator-- () |
Private Attributes | |
Index | mnom |
Index | mdenom |
Definition at line 34 of file rational.h.
|
inline |
Definition at line 39 of file rational.h.
Referenced by abs(), operator%(), operator*(), operator+(), operator-(), operator/(), and operator>>().
|
inline |
Definition at line 40 of file rational.h.
|
inline |
Definition at line 41 of file rational.h.
Definition at line 42 of file rational.h.
References Simplify().
|
inline |
Definition at line 46 of file rational.h.
References mdenom.
Referenced by operator%(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<<(), and operator==().
|
inline |
Definition at line 48 of file rational.h.
References mdenom, mnom, and toIndex().
Referenced by propmat_clearskyAddZeeman().
|
inline |
Definition at line 45 of file rational.h.
References mnom.
Referenced by operator%(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<<(), and operator==().
Definition at line 61 of file rational.h.
References Denom(), mdenom, mnom, Nom(), and Simplify().
|
inline |
Definition at line 64 of file rational.h.
|
inline |
Definition at line 66 of file rational.h.
Definition at line 58 of file rational.h.
References Denom(), mdenom, mnom, Nom(), and Simplify().
|
inline |
Definition at line 65 of file rational.h.
|
inline |
Definition at line 67 of file rational.h.
Definition at line 59 of file rational.h.
References Denom(), mdenom, mnom, Nom(), and Simplify().
Definition at line 60 of file rational.h.
References Denom(), mdenom, mnom, Nom(), and Simplify().
void Rational::Simplify | ( | ) |
Definition at line 44 of file rational.cc.
Referenced by operator*=(), operator+=(), operator-=(), operator/=(), Rational(), and toNumeric().
Index Rational::toIndex | ( | ) | const |
Definition at line 32 of file rational.cc.
Referenced by fac(), isUndefined(), triangle_coefficient(), wigner3j(), and wigner6j().
|
inline |
Definition at line 52 of file rational.h.
References mdenom, mnom, and Simplify().
Referenced by frequency_change_casea(), frequency_change_caseb(), propmat_clearskyAddZeeman(), test45(), and wigner6j().
|
private |
Definition at line 72 of file rational.h.
Referenced by Denom(), isUndefined(), operator*=(), operator++(), operator+=(), operator--(), operator-=(), operator/=(), Simplify(), toIndex(), and toNumeric().
|
private |
Definition at line 71 of file rational.h.
Referenced by isUndefined(), Nom(), operator*=(), operator++(), operator+=(), operator--(), operator-=(), operator/=(), Simplify(), toIndex(), and toNumeric().