Givaro 4.2.1
|
Rationals. No doc. More...
#include <givrational.h>
Public Member Functions | |
Rational (const Integer &f, const Integer &m, const Integer &k, bool recurs=false) | |
Rational number reconstruction. | |
Protected Member Functions | |
bool | ratrecon (const Integer &f, const Integer &m, const Integer &k, bool forcereduce=true, bool recurs=false) |
num/den \equiv f modulo m, with a bound k on num forcereduce : must return a reduced fraction num/den recurs : tries to augment the given bound k if failure | |
Comparison operators. | |
Compare with operators. | |
giv_all_inlined friend int32_t | operator>= (uint32_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator>= (float l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator>= (double l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator>= (int32_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator>= (int64_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator>= (uint64_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator<= (uint32_t l, const Rational &n) |
less or equal | |
giv_all_inlined friend int32_t | operator<= (float l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator<= (double l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator<= (int32_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator<= (int64_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator<= (uint64_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator!= (uint32_t l, const Rational &n) |
operator != (not equal) | |
giv_all_inlined friend int32_t | operator!= (float l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator!= (double l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator!= (int32_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator!= (int64_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator!= (uint64_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator== (uint32_t l, const Rational &n) |
Equality. | |
giv_all_inlined friend int32_t | operator== (float l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator== (double l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator== (int32_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator== (int64_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator== (uint64_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator> (uint32_t l, const Rational &n) |
greater (strict) | |
giv_all_inlined friend int32_t | operator> (float l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator> (double l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator> (int32_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator> (int64_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator> (uint64_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator< (uint32_t l, const Rational &n) |
less (strict) | |
giv_all_inlined friend int32_t | operator< (float l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator< (double l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator< (int32_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator< (int64_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined friend int32_t | operator< (uint64_t l, const Rational &n) |
greater or equal. | |
giv_all_inlined int32_t | operator>= (const Integer &l) const |
greater or equal. | |
giv_all_inlined int32_t | operator>= (const int32_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator>= (const int64_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator>= (const uint64_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator>= (const uint32_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator>= (const double l) const |
greater or equal. | |
giv_all_inlined int32_t | operator>= (const float l) const |
greater or equal. | |
giv_all_inlined int32_t | operator<= (const Rational &l) const |
less or equal | |
giv_all_inlined int32_t | operator<= (const int32_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator<= (const int64_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator<= (const uint64_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator<= (const uint32_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator<= (const double l) const |
greater or equal. | |
giv_all_inlined int32_t | operator<= (const float l) const |
greater or equal. | |
giv_all_inlined int32_t | operator!= (const Integer &l) const |
operator != (not equal) | |
giv_all_inlined int32_t | operator!= (const int32_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator!= (const int64_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator!= (const uint64_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator!= (const uint32_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator!= (const double l) const |
greater or equal. | |
giv_all_inlined int32_t | operator!= (const float l) const |
greater or equal. | |
giv_all_inlined int32_t | operator== (const Integer &l) const |
Equality. | |
giv_all_inlined int32_t | operator== (const int32_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator== (const int64_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator== (const uint64_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator== (const uint32_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator== (const double l) const |
greater or equal. | |
giv_all_inlined int32_t | operator== (const float l) const |
greater or equal. | |
giv_all_inlined int32_t | operator> (const Integer &l) const |
greater (strict) | |
giv_all_inlined int32_t | operator> (const int32_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator> (const int64_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator> (const uint64_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator> (const uint32_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator> (const double l) const |
greater or equal. | |
giv_all_inlined int32_t | operator> (const float l) const |
greater or equal. | |
giv_all_inlined int32_t | operator< (const Integer &l) const |
less (strict) | |
giv_all_inlined int32_t | operator< (const int32_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator< (const int64_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator< (const uint64_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator< (const uint32_t l) const |
greater or equal. | |
giv_all_inlined int32_t | operator< (const double l) const |
greater or equal. | |
giv_all_inlined int32_t | operator< (const float l) const |
greater or equal. | |
Rationals. No doc.
Rational number reconstruction.
giv_all_inlined int32_t operator>= | ( | const Integer & | l | ) | const |
greater or equal.
l | integer to be compared to |
giv_all_inlined int32_t operator>= | ( | const int32_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator>= | ( | const int64_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator>= | ( | const uint64_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator>= | ( | const uint32_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator>= | ( | const double | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator>= | ( | const float | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator<= | ( | const Rational & | l | ) | const |
less or equal
l | rational to be compared to |
giv_all_inlined int32_t operator<= | ( | const int32_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator<= | ( | const int64_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator<= | ( | const uint64_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator<= | ( | const uint32_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator<= | ( | const double | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator<= | ( | const float | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator!= | ( | const Integer & | l | ) | const |
operator != (not equal)
l | rational |
1
iff l == this giv_all_inlined int32_t operator!= | ( | const int32_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator!= | ( | const int64_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator!= | ( | const uint64_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator!= | ( | const uint32_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator!= | ( | const double | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator!= | ( | const float | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator== | ( | const Integer & | l | ) | const |
Equality.
l | rational to be compared to |
giv_all_inlined int32_t operator== | ( | const int32_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator== | ( | const int64_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator== | ( | const uint64_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator== | ( | const uint32_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator== | ( | const double | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator== | ( | const float | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator> | ( | const Integer & | l | ) | const |
greater (strict)
l | rational to be compared to |
giv_all_inlined int32_t operator> | ( | const int32_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator> | ( | const int64_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator> | ( | const uint64_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator> | ( | const uint32_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator> | ( | const double | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator> | ( | const float | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator< | ( | const Integer & | l | ) | const |
less (strict)
l | rational to be compared to |
giv_all_inlined int32_t operator< | ( | const int32_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator< | ( | const int64_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator< | ( | const uint64_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator< | ( | const uint32_t | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator< | ( | const double | l | ) | const |
greater or equal.
l,n | rationals to compare |
giv_all_inlined int32_t operator< | ( | const float | l | ) | const |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
less or equal
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
operator != (not equal)
l,n | rational |
1
iff l == n
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
Equality.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater (strict)
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
less (strict)
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |
|
friend |
greater or equal.
l,n | rationals to compare |