Skip to content
Snippets Groups Projects
Commit 015002e9 authored by René Fritze's avatar René Fritze
Browse files

[la/common] simplify std::complex hndling by providing DSC::{isnan,isinf}

parent 5ba9b135
No related branches found
No related tags found
No related merge requests found
......@@ -218,10 +218,10 @@ public:
for (size_t rr = 0; rr < dimRange; ++rr) {
tmp_row_ = ret[rr];
for (size_t cc = 0; cc < dimRangeCols; ++cc) {
if (std::isnan(tmp_row_[cc])) {
if (DSC::isnan(tmp_row_[cc])) {
failure = true;
type = "NaN";
} else if (std::isinf(tmp_row_[cc])) {
} else if (DSC::isinf(tmp_row_[cc])) {
failure = true;
type = "inf";
} else if (std::abs(tmp_row_[cc]) > (0.9 * std::numeric_limits<double>::max())) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment