1 #ifndef EIGEN_SUPERLUSUPPORT_MODULE_H
2 #define EIGEN_SUPERLUSUPPORT_MODULE_H
6 #include "src/Core/util/DisableStupidWarnings.h"
9 #define EIGEN_EMPTY_WAS_ALREADY_DEFINED
13 #include <slu_Cnames.h>
14 #include <supermatrix.h>
17 // slu_util.h defines a preprocessor token named EMPTY which is really polluting,
18 // so we remove it in favor of a SUPERLU_EMPTY token.
19 // If EMPTY was already defined then we don't undef it.
21 #if defined(EIGEN_EMPTY_WAS_ALREADY_DEFINED)
22 # undef EIGEN_EMPTY_WAS_ALREADY_DEFINED
27 #define SUPERLU_EMPTY (-1)
29 namespace Eigen { struct SluMatrix; }
31 /** \ingroup Support_modules
32 * \defgroup SuperLUSupport_Module SuperLUSupport module
34 * This module provides an interface to the <a href="http://crd-legacy.lbl.gov/~xiaoye/SuperLU/">SuperLU</a> library.
35 * It provides the following factorization class:
36 * - class SuperLU: a supernodal sequential LU factorization.
37 * - class SuperILU: a supernodal sequential incomplete LU factorization (to be used as a preconditioner for iterative methods).
39 * \warning When including this module, you have to use SUPERLU_EMPTY instead of EMPTY which is no longer defined because it is too polluting.
42 * #include <Eigen/SuperLUSupport>
45 * In order to use this module, the superlu headers must be accessible from the include paths, and your binary must be linked to the superlu library and its dependencies.
46 * The dependencies depend on how superlu has been compiled.
47 * For a cmake based project, you can use our FindSuperLU.cmake module to help you in this task.
51 #include "src/misc/Solve.h"
52 #include "src/misc/SparseSolve.h"
54 #include "src/SuperLUSupport/SuperLUSupport.h"
57 #include "src/Core/util/ReenableStupidWarnings.h"
59 #endif // EIGEN_SUPERLUSUPPORT_MODULE_H