2008-06-23 21:25:22 +08:00
|
|
|
#ifndef EIGEN_SPARSE_MODULE_H
|
|
|
|
#define EIGEN_SPARSE_MODULE_H
|
|
|
|
|
|
|
|
#include "Core"
|
2008-12-19 04:48:02 +08:00
|
|
|
|
|
|
|
#include "src/Core/util/DisableMSVCWarnings.h"
|
|
|
|
|
2008-06-23 21:25:22 +08:00
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
2008-08-22 09:19:53 +08:00
|
|
|
#include <cstdlib>
|
|
|
|
#include <cstring>
|
|
|
|
#include <algorithm>
|
2008-06-23 21:25:22 +08:00
|
|
|
|
2008-10-21 21:35:04 +08:00
|
|
|
#ifdef EIGEN_GOOGLEHASH_SUPPORT
|
|
|
|
#include <google/dense_hash_map>
|
|
|
|
#endif
|
|
|
|
|
2008-10-05 21:38:38 +08:00
|
|
|
#ifdef EIGEN_CHOLMOD_SUPPORT
|
|
|
|
extern "C" {
|
2009-06-24 22:35:02 +08:00
|
|
|
#include <cholmod.h>
|
2008-10-05 21:38:38 +08:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef EIGEN_TAUCS_SUPPORT
|
2008-10-20 18:43:11 +08:00
|
|
|
// taucs.h declares a lot of mess
|
|
|
|
#define isnan
|
|
|
|
#define finite
|
|
|
|
#define isinf
|
2008-10-05 21:38:38 +08:00
|
|
|
extern "C" {
|
2009-06-24 22:35:02 +08:00
|
|
|
#include <taucs.h>
|
2008-10-05 21:38:38 +08:00
|
|
|
}
|
2008-10-20 18:43:11 +08:00
|
|
|
#undef isnan
|
|
|
|
#undef finite
|
|
|
|
#undef isinf
|
2008-10-05 21:38:38 +08:00
|
|
|
|
|
|
|
#ifdef min
|
|
|
|
#undef min
|
|
|
|
#endif
|
|
|
|
#ifdef max
|
|
|
|
#undef max
|
|
|
|
#endif
|
2009-02-05 17:36:52 +08:00
|
|
|
#ifdef complex
|
|
|
|
#undef complex
|
|
|
|
#endif
|
2008-10-05 21:38:38 +08:00
|
|
|
#endif
|
|
|
|
|
2008-10-19 23:26:28 +08:00
|
|
|
#ifdef EIGEN_SUPERLU_SUPPORT
|
|
|
|
typedef int int_t;
|
2009-06-24 22:35:02 +08:00
|
|
|
#include <slu_Cnames.h>
|
|
|
|
#include <supermatrix.h>
|
|
|
|
#include <slu_util.h>
|
2008-10-19 23:26:28 +08:00
|
|
|
|
|
|
|
namespace SuperLU_S {
|
2009-06-24 22:35:02 +08:00
|
|
|
#include <slu_sdefs.h>
|
2008-10-19 23:26:28 +08:00
|
|
|
}
|
|
|
|
namespace SuperLU_D {
|
2009-06-24 22:35:02 +08:00
|
|
|
#include <slu_ddefs.h>
|
2008-10-19 23:26:28 +08:00
|
|
|
}
|
|
|
|
namespace SuperLU_C {
|
2009-06-24 22:35:02 +08:00
|
|
|
#include <slu_cdefs.h>
|
2008-10-19 23:26:28 +08:00
|
|
|
}
|
|
|
|
namespace SuperLU_Z {
|
2009-06-24 22:35:02 +08:00
|
|
|
#include <slu_zdefs.h>
|
2008-10-19 23:26:28 +08:00
|
|
|
}
|
|
|
|
namespace Eigen { struct SluMatrix; }
|
|
|
|
#endif
|
|
|
|
|
2008-10-20 06:44:21 +08:00
|
|
|
#ifdef EIGEN_UMFPACK_SUPPORT
|
2009-06-24 22:35:02 +08:00
|
|
|
#include <umfpack.h>
|
2008-10-20 06:44:21 +08:00
|
|
|
#endif
|
|
|
|
|
2008-06-23 21:25:22 +08:00
|
|
|
namespace Eigen {
|
|
|
|
|
2009-01-26 21:53:43 +08:00
|
|
|
/** \defgroup Sparse_Module Sparse module
|
|
|
|
*
|
|
|
|
* \nonstableyet
|
|
|
|
*
|
|
|
|
* See the \ref TutorialSparse "Sparse tutorial"
|
|
|
|
*
|
|
|
|
* \code
|
|
|
|
* #include <Eigen/QR>
|
|
|
|
* \endcode
|
|
|
|
*/
|
|
|
|
|
2009-11-17 23:04:19 +08:00
|
|
|
/** The type used to identify a general sparse storage. */
|
|
|
|
struct Sparse {};
|
|
|
|
|
2008-06-27 07:22:26 +08:00
|
|
|
#include "src/Sparse/SparseUtil.h"
|
|
|
|
#include "src/Sparse/SparseMatrixBase.h"
|
2009-01-15 20:52:59 +08:00
|
|
|
#include "src/Sparse/CompressedStorage.h"
|
2008-10-04 22:23:00 +08:00
|
|
|
#include "src/Sparse/AmbiVector.h"
|
2008-10-21 07:42:20 +08:00
|
|
|
#include "src/Sparse/RandomSetter.h"
|
2008-09-02 23:28:49 +08:00
|
|
|
#include "src/Sparse/SparseBlock.h"
|
2008-06-23 21:25:22 +08:00
|
|
|
#include "src/Sparse/SparseMatrix.h"
|
2009-01-19 23:20:45 +08:00
|
|
|
#include "src/Sparse/DynamicSparseMatrix.h"
|
2009-01-15 20:52:59 +08:00
|
|
|
#include "src/Sparse/MappedSparseMatrix.h"
|
2009-01-02 16:47:09 +08:00
|
|
|
#include "src/Sparse/SparseVector.h"
|
2008-06-23 21:25:22 +08:00
|
|
|
#include "src/Sparse/CoreIterators.h"
|
2009-01-14 22:24:10 +08:00
|
|
|
#include "src/Sparse/SparseTranspose.h"
|
|
|
|
#include "src/Sparse/SparseCwiseUnaryOp.h"
|
|
|
|
#include "src/Sparse/SparseCwiseBinaryOp.h"
|
|
|
|
#include "src/Sparse/SparseDot.h"
|
|
|
|
#include "src/Sparse/SparseAssign.h"
|
2009-01-08 01:01:57 +08:00
|
|
|
#include "src/Sparse/SparseRedux.h"
|
2009-01-14 22:24:10 +08:00
|
|
|
#include "src/Sparse/SparseFuzzy.h"
|
2008-06-29 07:07:14 +08:00
|
|
|
#include "src/Sparse/SparseProduct.h"
|
2009-02-09 17:59:30 +08:00
|
|
|
#include "src/Sparse/SparseDiagonalProduct.h"
|
2009-11-18 21:52:52 +08:00
|
|
|
#include "src/Sparse/SparseTriangularView.h"
|
|
|
|
#include "src/Sparse/SparseSelfAdjointView.h"
|
2008-06-30 05:29:12 +08:00
|
|
|
#include "src/Sparse/TriangularSolver.h"
|
2008-10-19 02:33:56 +08:00
|
|
|
#include "src/Sparse/SparseLLT.h"
|
2008-11-05 21:47:55 +08:00
|
|
|
#include "src/Sparse/SparseLDLT.h"
|
2008-10-19 02:33:56 +08:00
|
|
|
#include "src/Sparse/SparseLU.h"
|
2008-10-05 21:38:38 +08:00
|
|
|
|
|
|
|
#ifdef EIGEN_CHOLMOD_SUPPORT
|
|
|
|
# include "src/Sparse/CholmodSupport.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef EIGEN_TAUCS_SUPPORT
|
|
|
|
# include "src/Sparse/TaucsSupport.h"
|
|
|
|
#endif
|
2008-06-23 21:25:22 +08:00
|
|
|
|
2008-10-19 23:26:28 +08:00
|
|
|
#ifdef EIGEN_SUPERLU_SUPPORT
|
|
|
|
# include "src/Sparse/SuperLUSupport.h"
|
|
|
|
#endif
|
|
|
|
|
2008-10-20 06:44:21 +08:00
|
|
|
#ifdef EIGEN_UMFPACK_SUPPORT
|
|
|
|
# include "src/Sparse/UmfPackSupport.h"
|
|
|
|
#endif
|
|
|
|
|
2008-06-23 21:25:22 +08:00
|
|
|
} // namespace Eigen
|
|
|
|
|
2008-12-19 04:48:02 +08:00
|
|
|
#include "src/Core/util/EnableMSVCWarnings.h"
|
|
|
|
|
2008-06-23 21:25:22 +08:00
|
|
|
#endif // EIGEN_SPARSE_MODULE_H
|
2009-12-02 07:00:29 +08:00
|
|
|
/* vim: set filetype=cpp et sw=2 ts=2 ai: */
|
|
|
|
|