Home > General-Functions > external > sparse_inverse > sparseinv > sparseinv_install.m

sparseinv_install

PURPOSE ^

SPARSEINV_INSTALL compiles and installs the sparseinv function.

SYNOPSIS ^

function sparseinv_install

DESCRIPTION ^

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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)

Generated on Sat 21-Jul-2018 20:56:10 by m2html © 2005