summaryrefslogtreecommitdiff
path: root/include/common/matrix.h
diff options
context:
space:
mode:
authorAdam NAILI2017-12-27 17:19:23 +0100
committerAdam NAILI2017-12-27 17:19:23 +0100
commitf39e6e3be66ff6077dd83094850232a46a21e624 (patch)
treeb201d6718cd2c550b4ba5ff8e12b084a7171f0c5 /include/common/matrix.h
parentee98053ef83869033713c8c7d6d487457d6443d8 (diff)
parentf5ff85f3c7e7d6bf11a423c497d2b3ce76cfafd8 (diff)
downloadmorpher-f39e6e3be66ff6077dd83094850232a46a21e624.tar.gz
Merge remote-tracking branch 'origin/master' into gui
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