summaryrefslogtreecommitdiff
path: root/include/common/matrix.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/common/matrix.h')
-rw-r--r--include/common/matrix.h51
1 files changed, 0 insertions, 51 deletions
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 @@
1#ifndef UPEM_MORPHING_MATRIX
2#define UPEM_MORPHING_MATRIX
3
4/**
5 * File: matrix.h
6 * Matrices representation and useful operations.
7 *
8 * See also:
9 * The film
10 */
11
12#include "geom.h"
13
14/**
15 * Struct: IntSquareMatrix
16 * Represents a square integer matrix.
17 *
18 * Fields:
19 * **elements - NULL-terminated array of element pointers
20 * dim - dimension
21 */
22typedef struct {
23 IntVector **elements;
24 IntVector dim;
25} IntSquareMatrix;
26
27/**
28 * Function: matrix_int_det
29 * Computes and returns the determinant of a square integer matrix.
30 *
31 * Parameters:
32 * *matrix - pointer to input matrix
33 *
34 * Returns:
35 * The integer determinant
36 */
37IntVector matrix_int_det(IntSquareMatrix *matrix);
38
39/**
40 * Function: matrix_reshape
41 * Reshapes a flat vector into a bi-dimensional row pointer array.
42 *
43 * Parameters:
44 * **bi_dim - pointer to the result row array
45 * *flat - flat vector
46 * width - number of elements per row
47 * height - number of rows
48 */
49void matrix_reshape(IntVector **bi_dim, IntVector *flat, int width, int height);
50
51#endif