2013-01-11 17:40:35 +08:00
|
|
|
// This file is part of Eigen, a lightweight C++ template library
|
|
|
|
// for linear algebra.
|
|
|
|
//
|
|
|
|
// Copyright (C) 2008-2009 Gael Guennebaud <g.gael@free.fr>
|
|
|
|
//
|
|
|
|
// 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/.
|
|
|
|
|
2010-06-18 17:28:30 +08:00
|
|
|
#ifndef EIGEN_SPARSE_EXTRA_MODULE_H
|
|
|
|
#define EIGEN_SPARSE_EXTRA_MODULE_H
|
|
|
|
|
2010-07-06 16:25:52 +08:00
|
|
|
#include "../../Eigen/Sparse"
|
2010-06-18 17:28:30 +08:00
|
|
|
|
2011-02-22 22:31:22 +08:00
|
|
|
#include "../../Eigen/src/Core/util/DisableStupidWarnings.h"
|
2010-06-18 17:28:30 +08:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
2021-08-28 00:53:28 +08:00
|
|
|
#include <unordered_map>
|
2010-06-18 17:28:30 +08:00
|
|
|
#include <cstdlib>
|
|
|
|
#include <cstring>
|
|
|
|
#include <algorithm>
|
2011-06-01 00:58:04 +08:00
|
|
|
#include <fstream>
|
|
|
|
#include <sstream>
|
2010-06-18 17:28:30 +08:00
|
|
|
|
|
|
|
#ifdef EIGEN_GOOGLEHASH_SUPPORT
|
|
|
|
#include <google/dense_hash_map>
|
2021-04-10 10:50:19 +08:00
|
|
|
#include <google/sparse_hash_map>
|
2010-06-18 17:28:30 +08:00
|
|
|
#endif
|
|
|
|
|
2013-01-11 17:40:35 +08:00
|
|
|
/**
|
2010-06-30 19:19:54 +08:00
|
|
|
* \defgroup SparseExtra_Module SparseExtra module
|
2010-06-18 17:28:30 +08:00
|
|
|
*
|
2021-09-03 01:23:33 +08:00
|
|
|
* This module contains some experimental features extending the sparse module:
|
|
|
|
* - A RandomSetter which is a wrapper object allowing to set/update a sparse matrix with random access.
|
|
|
|
* - MatrixMarket format(https://math.nist.gov/MatrixMarket/formats.html) readers and writers for sparse and dense matrices.
|
2010-06-18 17:28:30 +08:00
|
|
|
*
|
|
|
|
* \code
|
2021-09-03 01:23:33 +08:00
|
|
|
* #include <unsupported/Eigen/SparseExtra>
|
2010-06-18 17:28:30 +08:00
|
|
|
* \endcode
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "src/SparseExtra/RandomSetter.h"
|
2011-06-01 00:58:04 +08:00
|
|
|
|
|
|
|
#include "src/SparseExtra/MarketIO.h"
|
2010-06-18 17:28:30 +08:00
|
|
|
|
2012-04-01 00:01:43 +08:00
|
|
|
#if !defined(_WIN32)
|
|
|
|
#include <dirent.h>
|
|
|
|
#include "src/SparseExtra/MatrixMarketIterator.h"
|
|
|
|
#endif
|
|
|
|
|
2011-02-22 22:31:22 +08:00
|
|
|
#include "../../Eigen/src/Core/util/ReenableStupidWarnings.h"
|
2010-06-18 17:28:30 +08:00
|
|
|
|
|
|
|
#endif // EIGEN_SPARSE_EXTRA_MODULE_H
|