From dc4d1043b4391003cea28b3bedbc660fad63dea1 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Sat, 10 Sep 2011 21:19:21 +0200 Subject: [PATCH] Nuke obsolete function: directionalDerivative --- src/bisection-example-new.cc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/bisection-example-new.cc b/src/bisection-example-new.cc index f4820def..2e0f9181 100644 --- a/src/bisection-example-new.cc +++ b/src/bisection-example-new.cc @@ -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); -- GitLab