diff options
Diffstat (limited to 'include/common/matrix.h')
-rw-r--r-- | include/common/matrix.h | 34 |
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 | */ | ||
17 | typedef 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 | */ | ||
32 | IntVector matrix_int_det(IntSquareMatrix *matrix); | ||
33 | |||
34 | #endif | ||