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

More constness

parent e77e6e3b
Branches
No related tags found
No related merge requests found
......@@ -33,7 +33,8 @@ class SampleFunctional {
void descentDirection(const SmallVector x, SmallVector &ret) const {
if (x == SmallVector(0.0)) {
SmallVector d = smoothGradient(x);
SmallVector const d = smoothGradient(x);
// Decline of the smooth part in the negative gradient direction
double smoothDecline = -(d * d);
double nonlinearDecline =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment