There is a great deal of variation in the way UMFPACK is installed on various platforms, so I cannot provide a very helpful advice here other than pointing you to UMFPACK's home and letting you figure it out from there.
If you are working on a Linux platform, you are in luck since most Linux distributions come with a ready to install UMFPACK package but even here the name of the package and the way it is installed varies from one distribution to another. If yours is a Debian flavor of Linux, such as Ubuntu or Mint, then install UMFPACK through the commands:
sudo apt-get install libsuitesparse-dev sudo apt-get install libsuitesparse-doc
To include UMFPACK's header files in your programs, do:
#include <suitesparse/umfpack.h>To link your program with the UMFPACK library, give the ‘
-lumfpack’ flag to the compiler.
If you have a Mac, you may install “suitesparse” from MacPorts. This includes UMFPACK plus a large number of other programs. I am not a Mac user but from what I have seen, it appears that MacPorts' package comes with no installation instructions, and my students have had a hard time installing it without help from peers with a good deal of experience with Macs.
If you can provide step-by-step instructions on installing UMFPACK on a MAC, please let me know. I will add it to this web page with due acknowledgment.
|Programming Projects in C|