diff toolboxes/alps/ALPS/configuration.m @ 164:4205744092e6 release_1.9

Merge from branch "ivand_dev"
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Wed, 07 Sep 2011 14:17:30 +0100
parents 0de08f68256b
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toolboxes/alps/ALPS/configuration.m	Wed Sep 07 14:17:30 2011 +0100
@@ -0,0 +1,28 @@
+function [solveNewtonb, gradientDescentx, solveNewtonx] = configuration(mode)
+% Function that maps 'mode' value into (SolveNewtonb, GradientDescentx, SolveNewtonx) configuration
+
+if (mode == 0)
+    solveNewtonb = 0;
+    gradientDescentx = 0;
+    solveNewtonx = 0;
+elseif (mode == 1)
+    solveNewtonb = 0;
+    gradientDescentx = 0;
+    solveNewtonx = 1;
+elseif (mode == 2)
+    solveNewtonb = 0;
+    gradientDescentx = 1;
+    solveNewtonx = 0;
+elseif (mode == 4)
+    solveNewtonb = 1;
+    gradientDescentx = 0;
+    solveNewtonx = 0;
+elseif (mode == 5)
+    solveNewtonb = 1;
+    gradientDescentx = 0;
+    solveNewtonx = 1;
+elseif (mode == 6)
+    solveNewtonb = 1;
+    gradientDescentx = 1;
+    solveNewtonx = 0;
+end;