diff options
author | Thomas White <taw@physics.org> | 2019-08-15 16:35:27 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-08-16 10:26:59 +0200 |
commit | 14b58086754586c4cf431ee0b54cb4adc7cc4cfd (patch) | |
tree | 077da888eecc0a75fcb9d7d704f5ece5c126a2ea /libcrystfel/src/integer_matrix.c | |
parent | 0ee4e84678765760059dd1708439404709e70296 (diff) |
Add intmat_zero
Diffstat (limited to 'libcrystfel/src/integer_matrix.c')
-rw-r--r-- | libcrystfel/src/integer_matrix.c | 6 |
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) { |