From 5f780832115a9429e64ee0b6dbb66ff6292ea086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com> Date: Sat, 31 Jul 2021 16:03:22 +0200 Subject: [PATCH] Use NaNHelper for CRSMatrixDescriptor output --- src/algebra/CRSMatrixDescriptor.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/algebra/CRSMatrixDescriptor.hpp b/src/algebra/CRSMatrixDescriptor.hpp index e367db354..4be6a3236 100644 --- a/src/algebra/CRSMatrixDescriptor.hpp +++ b/src/algebra/CRSMatrixDescriptor.hpp @@ -4,6 +4,7 @@ #include <algebra/CRSMatrix.hpp> #include <utils/Array.hpp> #include <utils/Exceptions.hpp> +#include <utils/NaNHelper.hpp> #include <map> @@ -105,10 +106,10 @@ class CRSMatrixDescriptor }(); if (j_index < overflow_index) { - os << ' ' << A.m_column_indices[A.m_row_map[i] + j] << ':' << A.m_values[A.m_row_map[i] + j]; + os << ' ' << A.m_column_indices[A.m_row_map[i] + j] << ':' << NaNHelper(A.m_values[A.m_row_map[i] + j]); ++j; } else { - os << ' ' << i_overflow->first << ':' << i_overflow->second; + os << ' ' << i_overflow->first << ':' << NaNHelper(i_overflow->second); ++i_overflow; } } -- GitLab