spgsetup

PURPOSE ^

SETUP Compile the SPGL1 MEX interfaces

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

SETUP  Compile the SPGL1 MEX interfaces

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %SETUP  Compile the SPGL1 MEX interfaces
0002 
0003 %   setup.m
0004 %   $Id: spgsetup.m 1019 2008-06-17 19:33:48Z mpf $
0005 %
0006 %   ----------------------------------------------------------------------
0007 %   This file is part of SPGL1 (Spectral Projected Gradient for L1).
0008 %
0009 %   Copyright (C) 2007 Ewout van den Berg and Michael P. Friedlander,
0010 %   Department of Computer Science, University of British Columbia, Canada.
0011 %   All rights reserved. E-mail: <{ewout78,mpf}@cs.ubc.ca>.
0012 %
0013 %   SPGL1 is free software; you can redistribute it and/or modify it
0014 %   under the terms of the GNU Lesser General Public License as
0015 %   published by the Free Software Foundation; either version 2.1 of the
0016 %   License, or (at your option) any later version.
0017 %
0018 %   SPGL1 is distributed in the hope that it will be useful, but WITHOUT
0019 %   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
0020 %   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
0021 %   Public License for more details.
0022 %
0023 %   You should have received a copy of the GNU Lesser General Public
0024 %   License along with SPGL1; if not, write to the Free Software
0025 %   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
0026 %   USA
0027 %   ----------------------------------------------------------------------
0028 
0029 root = pwd;
0030 try
0031     cd('private')
0032     mex oneProjectorMex.c oneProjectorCore.c heap.c -output oneProjectorMex -DNDEBUG
0033     fprintf('Successfully compiled oneProjector.\n');
0034     cd(root)
0035 catch
0036     cd(root)
0037     fprintf('Could not compile oneProjector.');
0038     fprintf('You can still use the slower ".m" version.');
0039     rethrow(lasterr);
0040 end
0041

Generated on Mon 10-Jun-2013 23:03:23 by m2html © 2005