summaryrefslogtreecommitdiff
path: root/include/common/matrix.h
blob: 6c35cc03b31d690654446b96688bf88c0cad39ba (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
#ifndef UPEM_MORPHING_MATRIX
#define UPEM_MORPHING_MATRIX

/**
 * File: matrix.h
 *
 * See also:
 *   The film
 */

#include "geom.h"

/**
 * Type: IntSquareMatrix
 * Represents a square integer matrix.
 */
typedef struct {
  IntVector *elements;
  IntVector dim;
} IntSquareMatrix;

/**
 * Function: matrix_int_det
 * Computes and returns the determinant of a square integer matrix.
 *
 * Parameters:
 *   *matrix - pointer to input matrix
 *
 * Returns:
 *   The integer determinant
 */
IntVector matrix_int_det(IntSquareMatrix *matrix);

#endif