aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-05-07 14:06:36 +0200
committerThomas White <taw@physics.org>2019-05-07 16:25:44 +0200
commit60de420bfe47d5b33279ff959d5f82fdd530c306 (patch)
treeba68a44e043033b10dfdbb5b3ce1b15f9620f007 /tests
parent6d5dd6eda5f344563b87da86112a9605a463d298 (diff)
Remove intmat_set_all_3x3()
Diffstat (limited to 'tests')
-rw-r--r--tests/transformation_check.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/transformation_check.c b/tests/transformation_check.c
index 2790d6f1..33f44340 100644
--- a/tests/transformation_check.c
+++ b/tests/transformation_check.c
@@ -42,6 +42,25 @@
#define MAX_REFLS (10*1024)
+static void intmat_set_all_3x3(IntegerMatrix *m,
+ signed int m11, signed int m12, signed int m13,
+ signed int m21, signed int m22, signed int m23,
+ signed int m31, signed int m32, signed int m33)
+{
+ intmat_set(m, 0, 0, m11);
+ intmat_set(m, 0, 1, m12);
+ intmat_set(m, 0, 2, m13);
+
+ intmat_set(m, 1, 0, m21);
+ intmat_set(m, 1, 1, m22);
+ intmat_set(m, 1, 2, m23);
+
+ intmat_set(m, 2, 0, m31);
+ intmat_set(m, 2, 1, m32);
+ intmat_set(m, 2, 2, m33);
+}
+
+
static struct rvec *all_refls(UnitCell *cell, double max_r, int *n)
{
double asx, asy, asz;