Mercurial > hg > smallbox
comparison toolboxes/alps/ALPS/configuration.m @ 159:23763c5fbda5 danieleb
Merge
author | Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk> |
---|---|
date | Wed, 31 Aug 2011 10:43:32 +0100 |
parents | 0de08f68256b |
children |
comparison
equal
deleted
inserted
replaced
158:855aa3288394 | 159:23763c5fbda5 |
---|---|
1 function [solveNewtonb, gradientDescentx, solveNewtonx] = configuration(mode) | |
2 % Function that maps 'mode' value into (SolveNewtonb, GradientDescentx, SolveNewtonx) configuration | |
3 | |
4 if (mode == 0) | |
5 solveNewtonb = 0; | |
6 gradientDescentx = 0; | |
7 solveNewtonx = 0; | |
8 elseif (mode == 1) | |
9 solveNewtonb = 0; | |
10 gradientDescentx = 0; | |
11 solveNewtonx = 1; | |
12 elseif (mode == 2) | |
13 solveNewtonb = 0; | |
14 gradientDescentx = 1; | |
15 solveNewtonx = 0; | |
16 elseif (mode == 4) | |
17 solveNewtonb = 1; | |
18 gradientDescentx = 0; | |
19 solveNewtonx = 0; | |
20 elseif (mode == 5) | |
21 solveNewtonb = 1; | |
22 gradientDescentx = 0; | |
23 solveNewtonx = 1; | |
24 elseif (mode == 6) | |
25 solveNewtonb = 1; | |
26 gradientDescentx = 1; | |
27 solveNewtonx = 0; | |
28 end; |