|
Rational | rtnl_zero (void) |
|
Rational | rtnl (signed long long int num, signed long long int den) |
|
double | rtnl_as_double (Rational r) |
|
Rational | rtnl_mul (Rational a, Rational b) |
|
Rational | rtnl_div (Rational a, Rational b) |
|
Rational | rtnl_add (Rational a, Rational b) |
|
Rational | rtnl_sub (Rational a, Rational b) |
|
signed int | rtnl_cmp (Rational a, Rational b) |
|
Rational | rtnl_abs (Rational a) |
|
char * | rtnl_format (Rational rt) |
|
Rational * | rtnl_list (signed int num_min, signed int num_max, signed int den_min, signed int den_max, int *pn) |
|
RationalMatrix * | rtnl_mtx_new (unsigned int rows, unsigned int cols) |
|
RationalMatrix * | rtnl_mtx_copy (const RationalMatrix *m) |
|
Rational | rtnl_mtx_get (const RationalMatrix *m, int i, int j) |
|
void | rtnl_mtx_set (const RationalMatrix *m, int i, int j, Rational v) |
|
RationalMatrix * | rtnl_mtx_from_intmat (const IntegerMatrix *m) |
|
RationalMatrix * | rtnl_mtx_identity (int rows) |
|
IntegerMatrix * | intmat_from_rtnl_mtx (const RationalMatrix *m) |
|
void | rtnl_mtx_free (RationalMatrix *mtx) |
|
RationalMatrix * | rtnlmtx_times_rtnlmtx (const RationalMatrix *A, const RationalMatrix *B) |
|
RationalMatrix * | rtnlmtx_times_intmat (const RationalMatrix *A, const IntegerMatrix *B) |
|
RationalMatrix * | intmat_times_rtnlmtx (const IntegerMatrix *a, const RationalMatrix *b) |
|
int | transform_fractional_coords_rtnl (const RationalMatrix *P, const Rational *ivec, Rational *ans) |
|
void | transform_fractional_coords_rtnl_inverse (const RationalMatrix *P, const Rational *vec, Rational *ans) |
|
void | rtnl_mtx_print (const RationalMatrix *m) |
|
Rational | rtnl_mtx_det (const RationalMatrix *m) |
|
int | rtnl_mtx_is_identity (const RationalMatrix *m) |
|
int | rtnl_mtx_is_perm (const RationalMatrix *m) |
|
Rational numbers (including rational matrices)