for (size_type j = 0; j < n(); ++j)
// we might have complex numbers, so use abs also to check for nan
// since there is no isnan on complex numbers
- if (std::isnan(std::abs((*this)(i, j))))
+ if (numbers::is_nan(std::abs((*this)(i, j))))
out << std::setw(width) << (*this)(i, j) << ' ';
else if (std::abs((*this)(i, j)) > threshold)
out << std::setw(width) << (*this)(i, j) * number(denominator) << ' ';
const auto unpack = [&](const auto &cell, const auto &vertices) {
for (const auto v : cell->vertex_indices())
- if (std::isnan(vertices[v][0]) == false)
+ if (numbers::is_nan(vertices[v][0]) == false)
cell->vertex(v) = vertices[v];
};
for (size_type j = 0; j < nc; ++j)
// we might have complex numbers, so use abs also to check for nan
// since there is no isnan on complex numbers
- if (std::isnan(std::abs((*this)(i, j))))
+ if (numbers::is_nan(std::abs((*this)(i, j))))
out << std::setw(width) << (*this)(i, j) << ' ';
else if (std::abs(this->el(i, j)) > threshold)
out << std::setw(width) << this->el(i, j) * denominator << ' ';
return success;
}
- if ((step >= maxsteps) || std::isnan(check_value) ||
+ if ((step >= maxsteps) || numbers::is_nan(check_value) ||
(check_failure && (check_value > failure_residual)))
{
if (m_log_result)