From e99c921808989b0b242ccfa1aa6edd74871bc213 Mon Sep 17 00:00:00 2001 From: Jasper Date: Mon, 8 Sep 2025 15:47:52 +0200 Subject: Used forward declaration in vector.h Also added tag 'Matrix' to struct 'Matrix'. Makes forwards declaration available for 'Matrix'. Avoids having to import matrix.h in vector.h (and the other way around), when accessing matrix functionality. --- matrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'matrix.h') diff --git a/matrix.h b/matrix.h index 85dfa2b..76a3688 100644 --- a/matrix.h +++ b/matrix.h @@ -33,7 +33,7 @@ typedef enum { MATRIX_SWAP_COLS } MatrixSwapType; -typedef struct { +typedef struct Matrix { double *xs; size_t m; size_t n; -- cgit v1.2.3