From a767c658cb603de9ec9f0577627b9b32cbf82b2b Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 22 Dec 2017 01:53:55 +0100 Subject: Simplify and add geom. and matrix utility functions Signed-off-by: pacien --- test/common/matrix.c | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 test/common/matrix.c (limited to 'test/common') diff --git a/test/common/matrix.c b/test/common/matrix.c deleted file mode 100644 index 6d85304..0000000 --- a/test/common/matrix.c +++ /dev/null @@ -1,21 +0,0 @@ -#include "common/matrix.h" -#include - -static void test_matrix_int_det() { - IntSquareMatrix matrix; - IntVector *elements[3]; - - matrix_reshape(elements, (IntVector[]) {-2, +2, -3, - -1, +1, +3, - +2, +0, -1}, 3, 3); - - matrix.dim = 3; - matrix.elements = elements; - - assert(matrix_int_det(&matrix) == 18); -} - -int main(int argc, char **argv) { - test_matrix_int_det(); - return 0; -} -- cgit v1.2.3