summaryrefslogtreecommitdiff
path: root/include/common/matrix.h
diff options
context:
space:
mode:
authorpacien2017-11-28 19:01:51 +0100
committerpacien2017-11-28 19:01:51 +0100
commit987835afe8fc5d46cb3a6359ec80c9f035e72801 (patch)
treee93ddebbfc15900f9307df446e420c086f8a2ebd /include/common/matrix.h
parentac60669cd3a93312f0ff186055e61a5e3fb5fcdd (diff)
downloadmorpher-987835afe8fc5d46cb3a6359ec80c9f035e72801.tar.gz
Add module spec headers
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'include/common/matrix.h')
-rw-r--r--include/common/matrix.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/common/matrix.h b/include/common/matrix.h
new file mode 100644
index 0000000..6c35cc0
--- /dev/null
+++ b/include/common/matrix.h
@@ -0,0 +1,34 @@
1#ifndef UPEM_MORPHING_MATRIX
2#define UPEM_MORPHING_MATRIX
3
4/**
5 * File: matrix.h
6 *
7 * See also:
8 * The film
9 */
10
11#include "geom.h"
12
13/**
14 * Type: IntSquareMatrix
15 * Represents a square integer matrix.
16 */
17typedef struct {
18 IntVector *elements;
19 IntVector dim;
20} IntSquareMatrix;
21
22/**
23 * Function: matrix_int_det
24 * Computes and returns the determinant of a square integer matrix.
25 *
26 * Parameters:
27 * *matrix - pointer to input matrix
28 *
29 * Returns:
30 * The integer determinant
31 */
32IntVector matrix_int_det(IntSquareMatrix *matrix);
33
34#endif