summaryrefslogtreecommitdiff
path: root/include/morpher/matrix.h
blob: e3d5517e5f789512655dbeb091a0612f478a5064 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef UPEM_MORPHING_MATRIX
#define UPEM_MORPHING_MATRIX

/**
 * File: matrix.h
 * > The matrix is a system Neo, that system is our enemy.
 * -- Morpheus
 */

#include "common/geom.h"

/**
 * Function: matrix_int_det2
 * Computes and returns the determinant of a square integer matrix of size 2.
 *
 * Parameters:
 *   uij - element at the i-th row and j-th column, counting from 1
 *
 * Returns:
 *   The integer determinant
 */
IntVector matrix_int_det2(IntVector u11, IntVector u12,
                          IntVector u21, IntVector u22);

/**
 * Function: matrix_int_det3
 * Computes and returns the determinant of a square integer matrix of size 3.
 *
 * Parameters:
 *   uij - element at the i-th row and j-th column, counting from 1
 *
 * Returns:
 *   The integer determinant
 */
IntVector matrix_int_det3(IntVector u11, IntVector u12, IntVector u13,
                          IntVector u21, IntVector u22, IntVector u23,
                          IntVector u31, IntVector u32, IntVector u33);

#endif