SPARSEINV_INSTALL compiles and installs the sparseinv function. Your current working directory must be the sparseinv directory for this function to work. Example: sparseinv_install See also sparseinv, sparseinv_test
0001 function sparseinv_install 0002 %SPARSEINV_INSTALL compiles and installs the sparseinv function. 0003 % Your current working directory must be the sparseinv directory for this 0004 % function to work. 0005 % 0006 % Example: 0007 % sparseinv_install 0008 % 0009 % See also sparseinv, sparseinv_test 0010 0011 % Copyright 2011, Timothy A. Davis, http://www.suitesparse.com 0012 0013 is64 = ~isempty (strfind (computer, '64')) ; 0014 if (is64) 0015 fprintf ('Compiling sparseinv (64-bit)\n') ; 0016 mex -largeArrayDims sparseinv_mex.c sparseinv.c 0017 else 0018 fprintf ('Compiling sparseinv (32-bit)\n') ; 0019 mex sparseinv_mex.c sparseinv.c 0020 end 0021 addpath (pwd)