From ff12f105598ea94e7d870450ca056b550161bbeb Mon Sep 17 00:00:00 2001 From: dario Date: Wed, 11 Dec 2024 20:15:20 +0100 Subject: [PATCH] sta-core independent --- src/linalg/linalg.cpp | 5 ++++- src/linalg/matrix.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/linalg/linalg.cpp b/src/linalg/linalg.cpp index 3689546..650c2d8 100644 --- a/src/linalg/linalg.cpp +++ b/src/linalg/linalg.cpp @@ -2,9 +2,12 @@ #include #include #include +#include + +#ifdef STA_CORE #include #include -#include +#endif namespace sta{ diff --git a/src/linalg/matrix.cpp b/src/linalg/matrix.cpp index 0bc95e0..8b6f355 100644 --- a/src/linalg/matrix.cpp +++ b/src/linalg/matrix.cpp @@ -3,9 +3,11 @@ #include #include #include + #include #include + namespace sta { namespace math { @@ -416,7 +418,7 @@ void matrix::show_serial() { for(uint8_t c = 0; c < get_cols(); c++) { STA_DEBUG_PRINT("| "); - STA_DEBUG_PRINT(operator()(r, c)); + STA_DEBUG_PRINTF("%f", operator()(r, c)); if(c == get_cols() - 1) { STA_DEBUG_PRINTLN(" |"); } else { @@ -432,7 +434,7 @@ void matrix::show_serial() { void matrix::show_shape() { - STA_DEBUG_PRINTF("Matrix shape: (%d x %d)", get_rows(), get_cols()); + STA_DEBUG_PRINTF("Matrix shape: (%d x %d)\n", get_rows(), get_cols()); }