34
34
details = 0 ; % 1 if details of each command are to be printed
38
% ispc does not appear in MATLAB 5.3
41
% if ispc fails, assume we are on a Windows PC if it's not unix
39
46
if (~isempty (strfind (computer, '64')))
89
96
include = ['-DNPARTITION ' include] ;
100
%-------------------------------------------------------------------------------
102
%-------------------------------------------------------------------------------
104
% This is exceedingly ugly. The MATLAB mex command needs to be told where to
105
% fine the LAPACK and BLAS libraries, which is a real portability nightmare.
94
% MATLAB 6.1 and earlier: use the version supplied here
95
lapack = 'lcc_lib/libmwlapack.lib' ;
96
fprintf ('Using %s. If this fails with dgemm and others\n', lapack) ;
97
fprintf ('undefined, then edit cholmod_make.m and modify the') ;
98
fprintf (' statement:\nlapack = ''%s'' ;\n', lapack) ;
109
% MATLAB 6.1 and earlier: use the version supplied here
110
lapack = 'lcc_lib/libmwlapack.lib' ;
112
lapack = 'libmwlapack.lib' ;
100
lapack = 'libmwlapack.lib' ;
114
lapack = 'libmwlapack.lib libmwblas.lib' ;
103
% For other systems, mex should find lapack on its own, but this has been
104
% broken in MATLAB R2007a; the following is now required.
105
lapack = '-lmwlapack' ;
118
lapack = '-lmwlapack' ;
120
lapack = '-lmwlapack -lmwblas' ;
124
%-------------------------------------------------------------------------------
108
126
include = strrep (include, '/', filesep) ;
339
357
%-------------------------------------------------------------------------------
340
function [v,pc] = getversion
358
function v = getversion
341
359
% determine the MATLAB version, and return it as a double.
342
% only the primary and secondary version numbers are kept.
343
% MATLAB 7.0.4 becomes 7.0, version 6.5.2 becomes 6.5, etc.
345
t = find (v == '.') ;
351
% ispc does not appear in MATLAB 5.3
354
% if ispc fails, assume we are on a Windows PC if it's not unix
360
v = sscanf (version, '%d.%d.%d') ;
361
v = 10.^(0:-1:-(length(v)-1)) * v ;