aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/integer_matrix.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-10-10 16:16:07 +0200
committerThomas White <taw@physics.org>2012-10-10 16:16:07 +0200
commitd9884e5588b563b2c92a2ad0fec17303972e4f8c (patch)
tree9cc9bd81e600f6dee7f64bbbedea7e2ec2eb17e7 /libcrystfel/src/integer_matrix.h
parent9b7696c48970b09d5852ea7515f362688afcfcb7 (diff)
const-ify the integer matrix library
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 */