aboutsummaryrefslogtreecommitdiff
path: root/matrix/generic/matrix.h
diff options
context:
space:
mode:
Diffstat (limited to 'matrix/generic/matrix.h')
-rw-r--r--matrix/generic/matrix.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/matrix/generic/matrix.h b/matrix/generic/matrix.h
index d02b56e..655ff3d 100644
--- a/matrix/generic/matrix.h
+++ b/matrix/generic/matrix.h
@@ -1,3 +1,6 @@
+#ifndef NERV_GENERIC_MATRIX_H
+#define NERV_GENERIC_MATRIX_H
+
typedef struct Matrix {
long stride; /* size of a row */
long ncol, nrow, nmax; /* dimension of the matrix */
@@ -7,3 +10,5 @@ typedef struct Matrix {
} data; /* pointer to actual storage */
long *data_ref;
} Matrix;
+
+#endif