2011-11-12 22:22:35 +08:00
|
|
|
#ifndef EIGEN_ORDERINGMETHODS_MODULE_H
|
|
|
|
#define EIGEN_ORDERINGMETHODS_MODULE_H
|
|
|
|
|
|
|
|
#include "SparseCore"
|
|
|
|
|
2011-11-16 16:27:38 +08:00
|
|
|
#include "src/Core/util/DisableStupidWarnings.h"
|
2011-11-12 22:22:35 +08:00
|
|
|
|
Big changes in Eigen documentation:
- Organize the documentation into "chapters".
- Each chapter include many documentation pages, reference pages organized as modules, and a quick reference page.
- The "Chapters" tree is created using the defgroup/ingroup mechanism, even for the documentation pages (i.e., .dox files for which I added an \eigenManualPage macro that we can switch between \page or \defgroup ).
- Add a "General topics" entry for all pages that do not fit well in the previous "chapters".
- The highlevel struture is managed by a new eigendoxy_layout.xml file.
- remove the "index" and quite useless pages (namespace list, class hierarchy, member list, file list, etc.)
- add the javascript search-engine.
- add the "treeview" panel.
- remove \tableofcontents (replace them by a custom \eigenAutoToc macro to be able to easily re-enable if needed).
- add javascript to automatically generate a TOC from the h1/h2 tags of the current page, and put the TOC in the left side panel.
- overload various javascript function generated by doxygen to:
- remove the root of the treeview
- remove links to section/subsection from the treeview
- automatically expand the "Chapters" section
- automatically expand the current section
- adjust the height of the treeview to take into account the TOC
- always use the default .css file, eigendoxy.css now only includes our modifications
- use Doxyfile to specify our logo
- remove cross references to unsupported modules (temporarily)
2013-01-05 23:37:11 +08:00
|
|
|
/**
|
2011-11-12 22:22:35 +08:00
|
|
|
* \defgroup OrderingMethods_Module OrderingMethods module
|
|
|
|
*
|
2013-01-21 22:37:47 +08:00
|
|
|
* This module is currently for internal use only
|
|
|
|
*
|
|
|
|
* It defines various built-in and external ordering methods for sparse matrices.
|
|
|
|
* They are typically used to reduce the number of elements during
|
|
|
|
* the sparse matrix decomposition (LLT, LU, QR).
|
|
|
|
* Precisely, in a preprocessing step, a permutation matrix P is computed using
|
|
|
|
* those ordering methods and applied to the columns of the matrix.
|
|
|
|
* Using for instance the sparse Cholesky decomposition, it is expected that
|
|
|
|
* the nonzeros elements in LLT(A*P) will be much smaller than that in LLT(A).
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Usage :
|
2011-11-12 22:22:35 +08:00
|
|
|
* \code
|
|
|
|
* #include <Eigen/OrderingMethods>
|
|
|
|
* \endcode
|
2013-01-21 22:37:47 +08:00
|
|
|
*
|
|
|
|
* A simple usage is as a template parameter in the sparse decomposition classes :
|
|
|
|
*
|
|
|
|
* \code
|
|
|
|
* SparseLU<MatrixType, COLAMDOrdering<int> > solver;
|
|
|
|
* \endcode
|
|
|
|
*
|
|
|
|
* \code
|
|
|
|
* SparseQR<MatrixType, COLAMDOrdering<int> > solver;
|
|
|
|
* \endcode
|
|
|
|
*
|
|
|
|
* It is possible as well to call directly a particular ordering method for your own purpose,
|
|
|
|
* \code
|
|
|
|
* AMDOrdering<int> ordering;
|
|
|
|
* PermutationMatrix<Dynamic, Dynamic, int> perm;
|
|
|
|
* SparseMatrix<double> A;
|
|
|
|
* //Fill the matrix ...
|
|
|
|
*
|
|
|
|
* ordering(A, perm); // Call AMD
|
|
|
|
* \endcode
|
|
|
|
*
|
|
|
|
* \note Some of these methods (like AMD or METIS), need the sparsity pattern
|
|
|
|
* of the input matrix to be symmetric. When the matrix is structurally unsymmetric,
|
|
|
|
* Eigen computes internally the pattern of \f$A^T*A\f$ before calling the method.
|
|
|
|
* If your matrix is already symmetric (at leat in structure), you can avoid that
|
|
|
|
* by calling the method with a SelfAdjointView type.
|
|
|
|
*
|
|
|
|
* \code
|
|
|
|
* // Call the ordering on the pattern of the lower triangular matrix A
|
|
|
|
* ordering(A.selfadjointView<Lower>(), perm);
|
|
|
|
* \endcode
|
2011-11-12 22:22:35 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "src/OrderingMethods/Amd.h"
|
2012-06-14 00:26:05 +08:00
|
|
|
#include "src/OrderingMethods/Ordering.h"
|
2011-11-16 16:27:38 +08:00
|
|
|
#include "src/Core/util/ReenableStupidWarnings.h"
|
2011-11-12 22:22:35 +08:00
|
|
|
|
|
|
|
#endif // EIGEN_ORDERINGMETHODS_MODULE_H
|