From 33874d69d46df15faa13c039b1c329b12949b039 Mon Sep 17 00:00:00 2001 From: Jasper Date: Mon, 1 Sep 2025 08:57:20 +0200 Subject: Tolerance check of absolute value in 'matrix_eq' --- utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils.h') diff --git a/utils.h b/utils.h index 8503c1b..8aecde3 100644 --- a/utils.h +++ b/utils.h @@ -1,6 +1,8 @@ #ifndef UTIL_H #define UTIL_H +#define ABS(x) ((x) >= 0 ? (x) : -(x)) + char *str_delete_at(const char *str, const int pos); size_t str_count_occ(const char *str, const char ch); -- cgit v1.2.3