1function umfpack_install 2%UMFPACK_INSTALL to compile and install umfpack and amd2 for use in MATLAB 3% Your current directory must be UMFPACK/MATLAB for this function to work. 4% 5% Example: 6% umfpack_install 7% 8% See also umfpack, amd2. 9 10% Copyright 1995-2007 by Timothy A. Davis. 11 12% compile and install UMFPACK 13umfpack_path = pwd ; 14addpath (umfpack_path) ; 15umfpack_make 16 17% compile and install AMD 18cd ../../AMD/MATLAB 19amd_path = pwd ; 20addpath (amd_path) ; 21amd_make ; 22 23cd (umfpack_path) 24 25fprintf ('Now trying the umfpack_simple demo.\n'); 26umfpack_simple 27 28fprintf ('Added the following directories to the path. You may wish to add\n'); 29fprintf ('these permanently with the MATLAB pathtool command:\n') ; 30fprintf ('%s\n', umfpack_path) ; 31fprintf ('%s\n', amd_path) ; 32 33