comparison util/SMALL_solve.m @ 216:a986ee86651e luisf_dev

Calls SMALLboxInit in the beginning of both solve and learn, in order not to lose the SMALL_path variable.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 22 Mar 2012 11:41:04 +0000
parents f3b6ddd2f04f
children fd0b5d36f6ad 198d4d9cee74
comparison
equal deleted inserted replaced
215:f0552f962930 216:a986ee86651e
16 % License, or (at your option) any later version. See the file 16 % License, or (at your option) any later version. See the file
17 % COPYING included with this distribution for more information. 17 % COPYING included with this distribution for more information.
18 % 18 %
19 %% 19 %%
20 20
21 global SMALL_path 21 SMALLboxInit
22
23 if (isempty(SMALL_path))
24 error('SMALL_solve:varChk', '\nSMALL_path variable is not set... Please run SMALLboxInit and try again.\n\nExiting now...\n');
25 end
26 22
27 if isa(Problem.A,'float') 23 if isa(Problem.A,'float')
28 A = Problem.A; 24 A = Problem.A;
29 SparseLab_A=Problem.A; 25 SparseLab_A=Problem.A;
30 m = size(Problem.A,1); % m is the no. of rows. 26 m = size(Problem.A,1); % m is the no. of rows.