aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/integer_matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/integer_matrix.c')
-rw-r--r--libcrystfel/src/integer_matrix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/integer_matrix.c b/libcrystfel/src/integer_matrix.c
index 9431d189..c633a620 100644
--- a/libcrystfel/src/integer_matrix.c
+++ b/libcrystfel/src/integer_matrix.c
@@ -247,6 +247,12 @@ IntegerMatrix *intmat_intmat_mult(const IntegerMatrix *a,
}
+void intmat_zero(IntegerMatrix *m)
+{
+ memset(m->v, 0, m->rows*m->cols*sizeof(signed int));
+}
+
+
static IntegerMatrix *delete_row_and_column(const IntegerMatrix *m,
unsigned int di, unsigned int dj)
{