annotate toolboxes/alps/ALPS/configuration.m @ 184:8fc38e8df8c6 danieleb

Minor edits
author Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk>
date Fri, 27 Jan 2012 13:18:50 +0000
parents 0de08f68256b
children
rev   line source
ivan@154 1 function [solveNewtonb, gradientDescentx, solveNewtonx] = configuration(mode)
ivan@154 2 % Function that maps 'mode' value into (SolveNewtonb, GradientDescentx, SolveNewtonx) configuration
ivan@154 3
ivan@154 4 if (mode == 0)
ivan@154 5 solveNewtonb = 0;
ivan@154 6 gradientDescentx = 0;
ivan@154 7 solveNewtonx = 0;
ivan@154 8 elseif (mode == 1)
ivan@154 9 solveNewtonb = 0;
ivan@154 10 gradientDescentx = 0;
ivan@154 11 solveNewtonx = 1;
ivan@154 12 elseif (mode == 2)
ivan@154 13 solveNewtonb = 0;
ivan@154 14 gradientDescentx = 1;
ivan@154 15 solveNewtonx = 0;
ivan@154 16 elseif (mode == 4)
ivan@154 17 solveNewtonb = 1;
ivan@154 18 gradientDescentx = 0;
ivan@154 19 solveNewtonx = 0;
ivan@154 20 elseif (mode == 5)
ivan@154 21 solveNewtonb = 1;
ivan@154 22 gradientDescentx = 0;
ivan@154 23 solveNewtonx = 1;
ivan@154 24 elseif (mode == 6)
ivan@154 25 solveNewtonb = 1;
ivan@154 26 gradientDescentx = 1;
ivan@154 27 solveNewtonx = 0;
ivan@154 28 end;