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

Nuke obsolete function: directionalDerivative

parent 25f4176b
No related branches found
No related tags found
No related merge requests found
......@@ -38,17 +38,6 @@ class SampleFunctional {
return y * v + func_(v.two_norm()); // <1/2 Av - b,v> + H(|v|)
}
// Assumes |dir| = 1.
double directionalDerivative(const SmallVector x,
const SmallVector dir) const {
assert(abs(dir.two_norm() - 1) < 1e-8);
if (x == SmallVector(0.0))
return func_.rightDifferential(0);
return (x * dir > 0) ? PlusGrad(x) * dir : MinusGrad(x) * dir;
}
SmallVector minimise(const SmallVector x) const {
SmallVector descDir = ModifiedGradient(x);
......
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