From 3b339d0f070566b508e0717359c490a018d367f6 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 15:59:42 +0200 Subject: [PATCH] Use NaNHelper for CRSMatrix output --- src/algebra/CRSMatrix.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/algebra/CRSMatrix.hpp b/src/algebra/CRSMatrix.hpp index bf650afe2..1f7fe37e5 100644 --- a/src/algebra/CRSMatrix.hpp +++ b/src/algebra/CRSMatrix.hpp @@ -1,11 +1,11 @@ #ifndef CRS_MATRIX_HPP #define CRS_MATRIX_HPP +#include <algebra/Vector.hpp> #include <utils/Array.hpp> +#include <utils/NaNHelper.hpp> #include <utils/PugsAssert.hpp> -#include <algebra/Vector.hpp> - #include <iostream> template <typename DataType, typename IndexType> @@ -100,7 +100,7 @@ class CRSMatrix const auto row_end = A.m_row_map[i + 1]; os << i << "|"; for (IndexType j = row_begin; j < row_end; ++j) { - os << ' ' << A.m_column_indices[j] << ':' << A.m_values[j]; + os << ' ' << A.m_column_indices[j] << ':' << NaNHelper(A.m_values[j]); } os << '\n'; } -- GitLab