Skip to content

Commit

Permalink
Fix ctad error for old compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
fghoussen committed Sep 19, 2024
1 parent 5f99a73 commit 1784ab7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EXAMPLES/MATRIX_MARKET/arpackmm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ int itrSolve(options& opt, output& out, double const& slvItrILUDropTol,
for (auto idx = 0; idx < as.val.size(); idx++) {
double val = norm(as.val[idx]);
double res = as.computeResidualNorm(idx, A, opt.stdPb ? nullptr : &B);
out.res.push_back(tuple{val, res});
out.res.push_back(tuple<double, double>{val, res});
}

return 0;
Expand Down Expand Up @@ -810,7 +810,7 @@ int drtSolve(options& opt, output& out) {
for (auto idx = 0; idx < as.val.size(); idx++) {
double val = norm(as.val[idx]);
double res = as.computeResidualNorm(idx, A, opt.stdPb ? nullptr : &B);
out.res.push_back(tuple{val, res});
out.res.push_back(tuple<double, double>{val, res});
}

return 0;
Expand Down Expand Up @@ -1029,7 +1029,7 @@ int run(int argc, char** argv) {

cout << endl;
for (auto idx = 0; idx < out.res.size(); idx++) {
tuple res = out.res[idx];
tuple<double, double> res = out.res[idx];
cout << "RES: eigen value " << idx << ": " << get<0>(res);
cout << " (residual norm " << get<1>(res) << ")";
cout << endl;
Expand Down

0 comments on commit 1784ab7

Please sign in to comment.