summaryrefslogtreecommitdiff
path: root/matrix.h
diff options
context:
space:
mode:
Diffstat (limited to 'matrix.h')
-rw-r--r--matrix.h8
1 files changed, 5 insertions, 3 deletions
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