diff options
author | Jasper | 2025-09-05 14:45:34 +0200 |
---|---|---|
committer | Jasper | 2025-09-05 14:45:34 +0200 |
commit | 16175429d26b6803fd0249d5bbab6eb4cfe6e60b (patch) | |
tree | 10be3e3d2d8e9419bc17fb87c4cced832be15950 /matrix.h | |
parent | fa993680f1229a87506a2864bf472681adb309cc (diff) |
'matrix_is_square' is now a macro
Diffstat (limited to 'matrix.h')
-rw-r--r-- | matrix.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -17,6 +17,8 @@ #define matrix_is_vec(mat) (matrix_is_colvec(mat) || matrix_is_rowvec(mat)) +#define matrix_is_square(mat) ((mat)->m == (mat)->n) + #define TRUE 1 #define FALSE 0 @@ -59,7 +61,6 @@ Matrix *matrix_scale(const Matrix *A, double x); Matrix *matrix_sub(const Matrix *A, const Matrix *B); Matrix *matrix_mult(const Matrix *A, const Matrix *B); Matrix *matrix_rand(size_t m, size_t n, int bound_l, int bound_u, MatrixType type); -int matrix_is_square(const Matrix *mat); int 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); |