aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/integer_matrix.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/integer_matrix.h')
-rw-r--r--libcrystfel/src/integer_matrix.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/libcrystfel/src/integer_matrix.h b/libcrystfel/src/integer_matrix.h
index 41780629..1c930720 100644
--- a/libcrystfel/src/integer_matrix.h
+++ b/libcrystfel/src/integer_matrix.h
@@ -48,21 +48,24 @@ extern void intmat_free(IntegerMatrix *m);
/* Get/set */
extern void intmat_set(IntegerMatrix *m, unsigned int i, unsigned int j,
signed int v);
-extern signed int intmat_get(IntegerMatrix *m, unsigned int i, unsigned int j);
+extern signed int intmat_get(const IntegerMatrix *m,
+ unsigned int i, unsigned int j);
/* Matrix-(int)vector multiplication */
-extern signed int *intmat_intvec_mult(IntegerMatrix *m, signed int *vec);
+extern signed int *intmat_intvec_mult(const IntegerMatrix *m,
+ const signed int *vec);
/* Matrix-matrix multiplication */
-extern IntegerMatrix *intmat_intmat_mult(IntegerMatrix *a, IntegerMatrix *b);
+extern IntegerMatrix *intmat_intmat_mult(const IntegerMatrix *a,
+ const IntegerMatrix *b);
/* Inverse */
-extern IntegerMatrix *intmat_inverse(IntegerMatrix *m);
+extern IntegerMatrix *intmat_inverse(const IntegerMatrix *m);
/* Determinant */
-extern signed int intmat_det(IntegerMatrix *m);
+extern signed int intmat_det(const IntegerMatrix *m);
/* Diagnostics */
-extern void intmat_print(IntegerMatrix *m);
+extern void intmat_print(const IntegerMatrix *m);
#endif /* INTEGER_MATRIX_H */