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 --- include/common/matrix.h | 51 ------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 include/common/matrix.h (limited to 'include/common/matrix.h') diff --git a/include/common/matrix.h b/include/common/matrix.h deleted file mode 100644 index fe4a12a..0000000 --- a/include/common/matrix.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef UPEM_MORPHING_MATRIX -#define UPEM_MORPHING_MATRIX - -/** - * File: matrix.h - * Matrices representation and useful operations. - * - * See also: - * The film - */ - -#include "geom.h" - -/** - * Struct: IntSquareMatrix - * Represents a square integer matrix. - * - * Fields: - * **elements - NULL-terminated array of element pointers - * dim - dimension - */ -typedef struct { - IntVector **elements; - IntVector dim; -} IntSquareMatrix; - -/** - * Function: matrix_int_det - * Computes and returns the determinant of a square integer matrix. - * - * Parameters: - * *matrix - pointer to input matrix - * - * Returns: - * The integer determinant - */ -IntVector matrix_int_det(IntSquareMatrix *matrix); - -/** - * Function: matrix_reshape - * Reshapes a flat vector into a bi-dimensional row pointer array. - * - * Parameters: - * **bi_dim - pointer to the result row array - * *flat - flat vector - * width - number of elements per row - * height - number of rows - */ -void matrix_reshape(IntVector **bi_dim, IntVector *flat, int width, int height); - -#endif -- cgit v1.2.3