From ac2d9defeda8fe8ce941ac91b7b2d47114ee5da9 Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Fri, 23 Feb 2024 14:04:51 +0100 Subject: [PATCH] matrix: remove bold printing of diagonal elements As this was not working in NSH. Signed-off-by: Silvan Fuhrer --- src/lib/matrix/matrix/Matrix.hpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/lib/matrix/matrix/Matrix.hpp b/src/lib/matrix/matrix/Matrix.hpp index e3eecf2dd871..33d2e6cbf0bc 100644 --- a/src/lib/matrix/matrix/Matrix.hpp +++ b/src/lib/matrix/matrix/Matrix.hpp @@ -391,12 +391,6 @@ class Matrix for (unsigned j = 0; j < N; j++) { double d = static_cast(self(i, j)); - // Matrix diagonal elements - if (N > 1 && M > 1 && i == j) { - // make diagonal elements bold (ANSI CSI n 1) - printf("\033[1m"); - } - // if symmetric don't print upper triangular elements if ((M == N) && (j > i) && (i < N) && (j < M) && (fabs(d - static_cast(self(j, i))) < (double)eps) @@ -417,12 +411,6 @@ class Matrix printf("% 6.5f ", d); } } - - // Matrix diagonal elements - if (N > 1 && M > 1 && i == j) { - // reset any formatting (ANSI CSI n 0) - printf("\033[0m"); - } } printf("\n");