From ed35fa824603579dfc8df72f97dac020233ac7d3 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Sat, 10 Sep 2011 22:01:09 +0200
Subject: [PATCH] Comments

---
 src/bisection-example-new.cc | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/bisection-example-new.cc b/src/bisection-example-new.cc
index 59035dfa..8269baf7 100644
--- a/src/bisection-example-new.cc
+++ b/src/bisection-example-new.cc
@@ -43,11 +43,11 @@ class SampleFunctional {
      */
     SmallVector tmp;
 
-    A_.mv(descDir, tmp);
-    double const rest_A = tmp * descDir;
+    A_.mv(descDir, tmp);                 // Av
+    double const rest_A = tmp * descDir; // <Av,v>
 
-    A_.mv(x, tmp);
-    double const rest_b = (b_ - tmp) * descDir;
+    A_.mv(x, tmp);                              // Au
+    double const rest_b = (b_ - tmp) * descDir; // <b-Au,v>
 
     typedef MyNonlinearity<dimension, Function> MyNonlinearityType;
     MyNonlinearityType phi;
@@ -55,7 +55,8 @@ class SampleFunctional {
     MyDirectionalConvexFunctionType;
     MyDirectionalConvexFunctionType rest(rest_A, rest_b, phi, x, descDir);
 
-    Bisection bisection; // FIXME: default values
+    // FIXME: default values are used
+    Bisection bisection;
     int count;
     // FIXME: does x_old = 1 make any sense?!
     double const m = bisection.minimize(rest, 0.0, 1.0, count);
-- 
GitLab