From 49d32f7da7bf8ac50ec53d58bcad36c54b0137bc Mon Sep 17 00:00:00 2001 From: Iveta Date: Wed, 11 Dec 2024 20:53:21 +0200 Subject: [PATCH] just msqrt --- src/linalg/linalg.cpp | 4 ---- src/linalg/matrix.cpp | 20 ++------------------ 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/src/linalg/linalg.cpp b/src/linalg/linalg.cpp index 3b6dad1..4ee7eaa 100644 --- a/src/linalg/linalg.cpp +++ b/src/linalg/linalg.cpp @@ -2,12 +2,8 @@ #include #include #include -#include - -#ifdef STA_CORE #include #include -#endif namespace sta{ diff --git a/src/linalg/matrix.cpp b/src/linalg/matrix.cpp index 1527bb0..0bc95e0 100644 --- a/src/linalg/matrix.cpp +++ b/src/linalg/matrix.cpp @@ -3,25 +3,9 @@ #include #include #include - -#ifdef STA_CORE #include #include -#else -void STA_ASSERT_MSG(int cond, const char * msg) { - if(!cond) { - printf("%s\n", msg); - std::exit(1); - } -} -#define STA_DEBUG_PRINT printf -#define STA_DEBUG_PRINTF printf - -void STA_DEBUG_PRINTLN(const char * msg) { - printf("%s\n", msg); -} -#endif namespace sta { namespace math { @@ -432,7 +416,7 @@ void matrix::show_serial() { for(uint8_t c = 0; c < get_cols(); c++) { STA_DEBUG_PRINT("| "); - STA_DEBUG_PRINTF("%f", operator()(r, c)); + STA_DEBUG_PRINT(operator()(r, c)); if(c == get_cols() - 1) { STA_DEBUG_PRINTLN(" |"); } else { @@ -448,7 +432,7 @@ void matrix::show_serial() { void matrix::show_shape() { - STA_DEBUG_PRINTF("Matrix shape: (%d x %d)\n", get_rows(), get_cols()); + STA_DEBUG_PRINTF("Matrix shape: (%d x %d)", get_rows(), get_cols()); }