aboutsummaryrefslogtreecommitdiff
path: root/nerv/lib/matrix/matrix.h
diff options
context:
space:
mode:
Diffstat (limited to 'nerv/lib/matrix/matrix.h')
-rw-r--r--nerv/lib/matrix/matrix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nerv/lib/matrix/matrix.h b/nerv/lib/matrix/matrix.h
index a28fd97..2562772 100644
--- a/nerv/lib/matrix/matrix.h
+++ b/nerv/lib/matrix/matrix.h
@@ -20,4 +20,6 @@ typedef struct Matrix {
#define MATRIX_ROW_PTR(self, row) \
(MATRIX_ELEM *)((char *)MATRIX_ELEM_PTR(self) + (row) * (self)->stride)
+#define MATRIX_NEXT_ROW_PTR(self, stride) \
+ (MATRIX_ELEM *)((char *)self + stride)
#endif