diff options
author | Thomas White <taw@physics.org> | 2019-02-18 15:35:01 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-03-11 16:49:36 +0100 |
commit | a99bb041b12d6f10a00e75a4d76083767199a7a7 (patch) | |
tree | 20f20bb36345cd88947588743bd707b350bd10d8 /libcrystfel/src/rational.h | |
parent | 24ce9e4ac098d7744fb23f535eb97f3375425fd8 (diff) |
Add rtnl_mtx_det() and rtnl_mtx_mult()
Diffstat (limited to 'libcrystfel/src/rational.h')
-rw-r--r-- | libcrystfel/src/rational.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcrystfel/src/rational.h b/libcrystfel/src/rational.h index 8b182163..e2d3e5bf 100644 --- a/libcrystfel/src/rational.h +++ b/libcrystfel/src/rational.h @@ -83,9 +83,12 @@ extern Rational rtnl_mtx_get(const RationalMatrix *m, int i, int j); extern void rtnl_mtx_set(const RationalMatrix *m, int i, int j, Rational v); extern RationalMatrix *rtnl_mtx_from_intmat(const IntegerMatrix *m); extern void rtnl_mtx_free(RationalMatrix *mtx); +extern void rtnl_mtx_mult(const RationalMatrix *m, const Rational *vec, + Rational *ans); extern int rtnl_mtx_solve(const RationalMatrix *m, const Rational *vec, Rational *ans); extern void rtnl_mtx_print(const RationalMatrix *m); +extern Rational rtnl_mtx_det(const RationalMatrix *m); #ifdef __cplusplus } |