Mercurial > hg > smallbox
comparison util/SMALL_solve.m @ 203:f3b6ddd2f04f luisf_dev
checks if the variable SMALL_path exists, and exits otherwise.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 20 Mar 2012 15:52:22 +0000 |
parents | 751fa3bddd30 |
children | a986ee86651e |
comparison
equal
deleted
inserted
replaced
199:751fa3bddd30 | 203:f3b6ddd2f04f |
---|---|
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 global SMALL_path |
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 | |
22 | 26 |
23 if isa(Problem.A,'float') | 27 if isa(Problem.A,'float') |
24 A = Problem.A; | 28 A = Problem.A; |
25 SparseLab_A=Problem.A; | 29 SparseLab_A=Problem.A; |
26 m = size(Problem.A,1); % m is the no. of rows. | 30 m = size(Problem.A,1); % m is the no. of rows. |