Skip to content
Snippets Groups Projects

Add NaNHelper utility

Merged Stéphane Del Pino requested to merge feature/nan-output-for-vectors-and-matrices into develop
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
@@ -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;
}
}
Loading