Skip to content
Snippets Groups Projects
Commit 664e8b08 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

[Cleanup] Do not recompute x.two_norm()

parent baae6ebd
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ template <int dimension> class LocalFriction { ...@@ -36,7 +36,7 @@ template <int dimension> class LocalFriction {
if (xnorm < 1e-14 && xnorm >= smp) if (xnorm < 1e-14 && xnorm >= smp)
return std::numeric_limits<double>::infinity(); return std::numeric_limits<double>::infinity();
return func->regularity(x.two_norm()); return func->regularity(xnorm);
} }
// directional subdifferential: at u on the line u + t*v // directional subdifferential: at u on the line u + t*v
......
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