diff --git a/src/algebra/CRSMatrixDescriptor.hpp b/src/algebra/CRSMatrixDescriptor.hpp index e367db354e356035d18a8742b2410a8781dde09a..4be6a323630a9845ecb142b32f73ceca5d6dc7f6 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; } }