Skip to content
Snippets Groups Projects
Commit 5f780832 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Use NaNHelper for CRSMatrixDescriptor output

parent 3b339d0f
Branches
Tags
1 merge request!105Add NaNHelper utility
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <algebra/CRSMatrix.hpp> #include <algebra/CRSMatrix.hpp>
#include <utils/Array.hpp> #include <utils/Array.hpp>
#include <utils/Exceptions.hpp> #include <utils/Exceptions.hpp>
#include <utils/NaNHelper.hpp>
#include <map> #include <map>
...@@ -105,10 +106,10 @@ class CRSMatrixDescriptor ...@@ -105,10 +106,10 @@ class CRSMatrixDescriptor
}(); }();
if (j_index < overflow_index) { 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; ++j;
} else { } else {
os << ' ' << i_overflow->first << ':' << i_overflow->second; os << ' ' << i_overflow->first << ':' << NaNHelper(i_overflow->second);
++i_overflow; ++i_overflow;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment