You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							64 lines
						
					
					
						
							2.2 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							64 lines
						
					
					
						
							2.2 KiB
						
					
					
				| // This file is part of Eigen, a lightweight C++ template library | |
| // for linear algebra. | |
| // | |
| // This Source Code Form is subject to the terms of the Mozilla | |
| // Public License v. 2.0. If a copy of the MPL was not distributed | |
| // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
| 
 | |
| #ifndef STORMEIGEN_SUPERLUSUPPORT_MODULE_H | |
| #define STORMEIGEN_SUPERLUSUPPORT_MODULE_H | |
| 
 | |
| #include "SparseCore" | |
| 
 | |
| #include "src/Core/util/DisableStupidWarnings.h" | |
| 
 | |
| #ifdef EMPTY | |
| #define STORMEIGEN_EMPTY_WAS_ALREADY_DEFINED | |
| #endif | |
| 
 | |
| typedef int int_t; | |
| #include <slu_Cnames.h> | |
| #include <supermatrix.h> | |
| #include <slu_util.h> | |
| 
 | |
| // slu_util.h defines a preprocessor token named EMPTY which is really polluting, | |
| // so we remove it in favor of a SUPERLU_EMPTY token. | |
| // If EMPTY was already defined then we don't undef it. | |
| 
 | |
| #if defined(STORMEIGEN_EMPTY_WAS_ALREADY_DEFINED) | |
| # undef STORMEIGEN_EMPTY_WAS_ALREADY_DEFINED | |
| #elif defined(EMPTY) | |
| # undef EMPTY | |
| #endif | |
| 
 | |
| #define SUPERLU_EMPTY (-1) | |
| 
 | |
| namespace StormEigen { struct SluMatrix; } | |
| 
 | |
| /** \ingroup Support_modules | |
|   * \defgroup SuperLUSupport_Module SuperLUSupport module | |
|   * | |
|   * This module provides an interface to the <a href="http://crd-legacy.lbl.gov/~xiaoye/SuperLU/">SuperLU</a> library. | |
|   * It provides the following factorization class: | |
|   * - class SuperLU: a supernodal sequential LU factorization. | |
|   * - class SuperILU: a supernodal sequential incomplete LU factorization (to be used as a preconditioner for iterative methods). | |
|   * | |
|   * \warning This wrapper is only for the 4.x versions of SuperLU. The 3.x and 5.x versions are not supported. | |
|   * | |
|   * \warning When including this module, you have to use SUPERLU_EMPTY instead of EMPTY which is no longer defined because it is too polluting. | |
|   * | |
|   * \code | |
|   * #include <StormEigen/SuperLUSupport> | |
|   * \endcode | |
|   * | |
|   * 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. | |
|   * The dependencies depend on how superlu has been compiled. | |
|   * For a cmake based project, you can use our FindSuperLU.cmake module to help you in this task. | |
|   * | |
|   */ | |
| 
 | |
| #include "src/SuperLUSupport/SuperLUSupport.h" | |
| 
 | |
| #include "src/Core/util/ReenableStupidWarnings.h" | |
| 
 | |
| #endif // STORMEIGEN_SUPERLUSUPPORT_MODULE_H
 |