diff options
Diffstat (limited to 'matrix.h')
-rw-r--r-- | matrix.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |