


bpdq_make_mex : compiles mex files used in bpdq code This file is part of BPDQ Toolbox (Basis Pursuit DeQuantizer) Copyright (C) 2009, the BPDQ Team (see the file AUTHORS distributed with this library) (See the notice at the end of the file.)


0001 % bpdq_make_mex : compiles mex files used in bpdq code 0002 % 0003 % This file is part of BPDQ Toolbox (Basis Pursuit DeQuantizer) 0004 % Copyright (C) 2009, the BPDQ Team (see the file AUTHORS distributed with 0005 % this library) (See the notice at the end of the file.) 0006 0007 % 0008 % This runs mex from within matlab. The source can also be 0009 % compiled from the command line, using the Makefile 0010 % in the common/mex directory, 0011 % by setting location of the matlab mex script in the Makefile. 0012 bpdqdir=pwd; 0013 fprintf('Changing to directory mex\n'); 0014 cd mex 0015 fprintf('Compiling mex functions proj_lpball_newton_mex and prox_tv_mex\n'); 0016 mex bpdq_proj_lpball_mex.cpp LpNormalizer.cpp LpProjector.cpp 0017 mex bpdq_prox_tv_mex.c 0018 0019 cd(bpdqdir); 0020 0021 % The BPDQ Toolbox is free software: you can redistribute it and/or modify 0022 % it under the terms of the GNU General Public License as published by 0023 % the Free Software Foundation, either version 3 of the License, or 0024 % (at your option) any later version. 0025 % 0026 % The BPDQ Toolbox is distributed in the hope that it will be useful, 0027 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0028 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0029 % GNU General Public License for more details. 0030 % 0031 % You should have received a copy of the GNU General Public License 0032 % along with The BPDQ Toolbox. If not, see <http://www.gnu.org/licenses/>.