annotate util/SMALL_init_solver.m @ 162:88578ec2f94a danieleb

Updated grassmannian function and minor debugs
author Daniele Barchiesi <daniele.barchiesi@eecs.qmul.ac.uk>
date Wed, 31 Aug 2011 13:52:23 +0100
parents 31d2864dfdd4
children
rev   line source
ivan@140 1 function solver = SMALL_init_solver(toolbox, name, param, profile)
ivan@128 2 %% Function initialise SMALL structure for sparse representation.
ivan@128 3 % Optional input variables:
ivan@128 4 % toolbox - name of Dictionary Learning toolbox you want to use
ivan@128 5 % name - name of the algorithm from above toolbox
ivan@128 6 % param - parameters you want to set
ivan@128 7
idamnjanovic@24 8 %
idamnjanovic@24 9 % Centre for Digital Music, Queen Mary, University of London.
idamnjanovic@24 10 % This file copyright 2010 Ivan Damnjanovic.
idamnjanovic@24 11 %
idamnjanovic@24 12 % This program is free software; you can redistribute it and/or
idamnjanovic@24 13 % modify it under the terms of the GNU General Public License as
idamnjanovic@24 14 % published by the Free Software Foundation; either version 2 of the
idamnjanovic@24 15 % License, or (at your option) any later version. See the file
idamnjanovic@24 16 % COPYING included with this distribution for more information.
idamnjanovic@24 17 %
idamnjanovic@24 18 %%
idamnjanovic@24 19
ivan@140 20 if ~ exist( 'toolbox', 'var' ) || isempty(toolbox)
ivan@140 21 solver.toolbox = [];
ivan@140 22 else
ivan@140 23 solver.toolbox = toolbox;
ivan@140 24 end
ivan@140 25 if ~ exist( 'name', 'var' ) || isempty(name)
ivan@140 26 solver.name = [];
ivan@140 27 else
ivan@140 28 solver.name = name;
ivan@140 29 end
ivan@140 30 if ~ exist( 'param', 'var' ) || isempty(param)
ivan@140 31 solver.param = [];
ivan@140 32 else
ivan@140 33 solver.param = param;
ivan@140 34 end
ivan@140 35 if ~ exist( 'profile', 'var' ) || isempty(profile)
ivan@140 36 solver.profile = 1;
ivan@140 37 else
ivan@140 38 solver.profile = profile;
ivan@140 39 end
ivan@140 40 solver.add_constraints = 0;
ivan@140 41 solver.solution = [];
ivan@140 42 solver.reconstructed = [];
ivan@140 43 solver.time = [];
idamnjanovic@24 44
idamnjanovic@8 45 end