aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/rational.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-08-28 15:33:46 +0200
committerThomas White <taw@physics.org>2019-08-28 16:49:46 +0200
commit24e2744b8b53dde715f59d98f969d44a10530675 (patch)
tree1c62b4b0c0cb5e47084aa7dbcf4293e86ad047e3 /libcrystfel/src/rational.h
parent941889a4d9fc9663d70f80eb63c79c73eafb06c9 (diff)
Rationalise matrix mutliplication
compare_reindexed_cell_parameters still needs to be updated
Diffstat (limited to 'libcrystfel/src/rational.h')
-rw-r--r--libcrystfel/src/rational.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/libcrystfel/src/rational.h b/libcrystfel/src/rational.h
index 012b929e..880bdbeb 100644
--- a/libcrystfel/src/rational.h
+++ b/libcrystfel/src/rational.h
@@ -90,10 +90,13 @@ extern RationalMatrix *rtnl_mtx_from_intmat(const IntegerMatrix *m);
extern RationalMatrix *rtnl_mtx_identity(int rows);
extern IntegerMatrix *intmat_from_rtnl_mtx(const RationalMatrix *m);
extern void rtnl_mtx_free(RationalMatrix *mtx);
-extern void rtnl_mtx_mtxmult(const RationalMatrix *A, const RationalMatrix *B,
- RationalMatrix *ans);
-extern void rtnl_mtx_intmatmult(const RationalMatrix *A, const IntegerMatrix *B,
- RationalMatrix *ans);
+extern RationalMatrix *rtnlmtx_times_rtnlmtx(const RationalMatrix *A,
+ const RationalMatrix *B);
+extern RationalMatrix *rtnlmtx_times_intmat(const RationalMatrix *A,
+ const IntegerMatrix *B);
+extern RationalMatrix *intmat_times_rtnlmtx(const IntegerMatrix *a,
+ const RationalMatrix *b);
+
extern int transform_fractional_coords_rtnl(const RationalMatrix *P,
const Rational *ivec,
Rational *ans);