1function spqr_install (tbb)
2%SPQR_INSTALL compile and install SuiteSparseQR
3%
4% Example:
5%   spqr_install                        % compiles using METIS, no TBB
6%   spqr_install ('tbb')                % compiles with TBB
7%
8% SuiteSparseQR relies on CHOLMOD, AMD, and COLAMD, and can optionally use
9% CCOLAMD, CAMD, and METIS as well.  By default, CCOLAMD, CAMD, and METIS are
10% used.  METIS is assumed to be in the ../../metis-5.1.0 directory.  If not
11% present there, it is not used.
12%
13% You can only use spqr_install while in the SuiteSparseQR/MATLAB directory.
14%
15% Multithreading based on Intel Threading Building Blocks (TBB) is optionally
16% used. It is not enabled by default since it conflicts with multithreading in
17% the BLAS.
18%
19% See also spqr, spqr_solve, spqr_qmult.
20
21% Copyright 2008, Timothy A. Davis, http://www.suitesparse.com
22
23if (nargin < 1)
24    tbb = 0 ;
25end
26
27% compile SuiteSparseQR and add to the path
28spqr_make (tbb) ;
29spqr_path = pwd ;
30addpath (spqr_path)
31
32fprintf ('\nThe following path has been added.  You may wish to add it\n') ;
33fprintf ('permanently, using the MATLAB pathtool command.\n') ;
34fprintf ('%s\n', spqr_path) ;
35
36fprintf ('\nTo try your new mexFunctions, try this command:\n') ;
37fprintf ('spqr_demo\n') ;
38
39
40