From 6997b40597e8f8bfc0226bdf0c83bb4108f02e6d Mon Sep 17 00:00:00 2001 From: Jasper Date: Mon, 8 Sep 2025 16:07:05 +0200 Subject: 'Matrix' -> 'Vector' where needed --- matrix.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'matrix.h') diff --git a/matrix.h b/matrix.h index 76a3688..c4c11eb 100644 --- a/matrix.h +++ b/matrix.h @@ -19,6 +19,8 @@ #define matrix_is_square(mat) ((mat)->m == (mat)->n) +typedef struct Vector Vector; + typedef enum { MATRIX_DIAG, MATRIX_TRIAG_UPPER, @@ -83,10 +85,10 @@ bool matrix_eq(const Matrix *A, const Matrix *B, double tol); double matrix_norm_frob(const Matrix *mat); -Matrix **matrix_LR(const Matrix *A, const Matrix *b); +Matrix **matrix_LR(const Matrix *A, const Vector *b); -Matrix *matrix_forwardel(const Matrix *L, const Matrix *b); +Vector *matrix_forwardel(const Matrix *L, const Vector *b); -Matrix *matrix_backsubst(const Matrix *R, const Matrix *y); +Vector *matrix_backsubst(const Matrix *R, const Vector *y); #endif -- cgit v1.2.3