Home > manopt > manifolds > ttfixedrank > TTeMPS_1.1 > install_mex.m

install_mex

PURPOSE ^

Install helper for mex functions

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Install helper for mex functions

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Install helper for mex functions
0002 
0003 %   TTeMPS Toolbox.
0004 %   Michael Steinlechner, 2013-2016
0005 %   Questions and contact: michael.steinlechner@epfl.ch
0006 %   BSD 2-clause license, see LICENSE.txt
0007 
0008 % MAC AND LINUX:
0009 if strcmp(filesep,'/') 
0010     disp('Compiling for Mac or Linux system ...')
0011     mex -lmwlapack -lmwblas -largeArrayDims @TTeMPS/subsref_mex.c -outdir @TTeMPS
0012     mex -lmwlapack -lmwblas -largeArrayDims @TTeMPS_tangent/TTeMPS_tangent_omega.c -outdir @TTeMPS_tangent
0013     mex -lmwlapack -lmwblas -largeArrayDims @TTeMPS_tangent_orth/TTeMPS_tangent_orth_omega.c -outdir @TTeMPS_tangent_orth
0014     mex -lmwlapack -lmwblas -largeArrayDims algorithms/completion/als_solve_mex.c -outdir algorithms/completion/
0015 
0016 % WINDOWS:
0017 elseif strcmp(filesep, '\')
0018     disp('Compiling for Windows system ...')
0019     mex -lmwlapack -lmwblas -largeArrayDims @TTeMPS\subsref_mex.c -outdir @TTeMPS
0020     mex -lmwlapack -lmwblas -largeArrayDims @TTeMPS_tangent\TTeMPS_tangent_omega.c -outdir @TTeMPS_tangent
0021     mex -lmwlapack -lmwblas -largeArrayDims @TTeMPS_tangent_orth\TTeMPS_tangent_orth_omega.c -outdir @TTeMPS_tangent_orth
0022     mex -lmwlapack -lmwblas -largeArrayDims algorithms\completion\als_solve_mex.c -outdir algorithms\completion
0023     mex -lmwlapack -lmwblas -largeArrayDims ..\weingarten_omega.c -outdir ..
0024 
0025 else
0026     disp('Unknown filesep. Compile manually. Aborting.')
0027 end

Generated on Fri 30-Sep-2022 13:18:25 by m2html © 2005