# HG changeset patch # User luisf # Date 1332258795 0 # Node ID 5fe60504a6a9e3ab85f6d8f9d4c77670b70f32ac # Parent 5bb579c9874ed42e6085f755ed4ad34061be61ad# Parent f3b6ddd2f04f0b4f85bdc39afa0a3caf5f3df86c Merge from 203:f3b6ddd2f04f diff -r 5bb579c9874e -r 5fe60504a6a9 util/SMALL_learn.m --- a/util/SMALL_learn.m Tue Mar 20 14:51:31 2012 +0000 +++ b/util/SMALL_learn.m Tue Mar 20 15:53:15 2012 +0000 @@ -21,6 +21,10 @@ global SMALL_path +if (isempty(SMALL_path)) + error('SMALL_learn:varChk', '\nSMALL_path variable is not set... Please run SMALLboxInit and try again.\n\nExiting now...\n'); +end + if (DL.profile) fprintf('\nStarting Dictionary Learning %s... \n', DL.name); end diff -r 5bb579c9874e -r 5fe60504a6a9 util/SMALL_solve.m --- a/util/SMALL_solve.m Tue Mar 20 14:51:31 2012 +0000 +++ b/util/SMALL_solve.m Tue Mar 20 15:53:15 2012 +0000 @@ -20,6 +20,10 @@ global SMALL_path +if (isempty(SMALL_path)) + error('SMALL_solve:varChk', '\nSMALL_path variable is not set... Please run SMALLboxInit and try again.\n\nExiting now...\n'); +end + if isa(Problem.A,'float') A = Problem.A; SparseLab_A=Problem.A;