summaryrefslogtreecommitdiff
path: root/matrix.c
diff options
context:
space:
mode:
authorJasper2025-09-05 14:45:34 +0200
committerJasper2025-09-05 14:45:34 +0200
commit16175429d26b6803fd0249d5bbab6eb4cfe6e60b (patch)
tree10be3e3d2d8e9419bc17fb87c4cced832be15950 /matrix.c
parentfa993680f1229a87506a2864bf472681adb309cc (diff)
'matrix_is_square' is now a macro
Diffstat (limited to 'matrix.c')
-rw-r--r--matrix.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/matrix.c b/matrix.c
index 8ffae72..0c5b590 100644
--- a/matrix.c
+++ b/matrix.c
@@ -258,11 +258,6 @@ Matrix *matrix_rand(size_t m, size_t n, int bound_l, int bound_u, MatrixType typ
return mat;
}
-int matrix_is_square(const Matrix *mat)
-{
- return mat->m == mat->n;
-}
-
int matrix_eq(const Matrix *A, const Matrix *B, double tol)
{
assert(A->m == B->m && A->n == B->n && "Dimension mismatch");