Commit f6f59452 authored by Peter Gottschling's avatar Peter Gottschling

slight change.

parent e0597113
......@@ -90,8 +90,8 @@ namespace AMDiS {
// std::cout << "UmfPackSolver: A = \n" << A << "\n";
int code= (*solver)(x, b);
mtl::dense_vector<value_type> r= b - A * x;
std::cout << "UmfPackSolver: ||b-Ax|| = " << two_norm(r) << "\n";
mtl::dense_vector<value_type> r(b); r-= A * x; residual= two_norm(r);
std::cout << "UmfPackSolver: ||b-Ax|| = " << residual << "\n";
return code;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment