ACDC_KNOSYS-2021/MSC/libsvm-weights-3.20/matlab/make.m

22 lines
798 B
Mathematica
Raw Permalink Normal View History

2021-10-04 18:29:54 +08:00
% This make.m is for MATLAB and OCTAVE under Windows, Mac, and Unix
try
Type = ver;
% This part is for OCTAVE
if(strcmp(Type(1).Name, 'Octave') == 1)
mex libsvmread.c
mex libsvmwrite.c
mex svmtrain.c ../svm.cpp svm_model_matlab.c
mex svmpredict.c ../svm.cpp svm_model_matlab.c
% This part is for MATLAB
% Add -largeArrayDims on 64-bit machines of MATLAB
else
mex CFLAGS="\$CFLAGS -std=c99" -largeArrayDims libsvmread.c
mex CFLAGS="\$CFLAGS -std=c99" -largeArrayDims libsvmwrite.c
mex CFLAGS="\$CFLAGS -std=c99" -largeArrayDims svmtrain.c ../svm.cpp svm_model_matlab.c
mex CFLAGS="\$CFLAGS -std=c99" -largeArrayDims svmpredict.c ../svm.cpp svm_model_matlab.c
end
catch
fprintf('If make.m fails, please check README about detailed instructions.\n');
end