2008-04-27 02:26:05 +08:00
|
|
|
#ifndef EIGEN_QR_MODULE_H
|
|
|
|
#define EIGEN_QR_MODULE_H
|
|
|
|
|
|
|
|
#include "Core"
|
2008-06-15 03:42:12 +08:00
|
|
|
#include "Cholesky"
|
2008-04-27 02:26:05 +08:00
|
|
|
|
2008-06-14 21:02:41 +08:00
|
|
|
// Note that EIGEN_HIDE_HEAVY_CODE has to be defined per module
|
|
|
|
#if (defined EIGEN_EXTERN_INSTANTIATIONS) && (EIGEN_EXTERN_INSTANTIATIONS>=2)
|
|
|
|
#ifndef EIGEN_HIDE_HEAVY_CODE
|
|
|
|
#define EIGEN_HIDE_HEAVY_CODE
|
|
|
|
#endif
|
|
|
|
#elif defined EIGEN_HIDE_HEAVY_CODE
|
|
|
|
#undef EIGEN_HIDE_HEAVY_CODE
|
|
|
|
#endif
|
|
|
|
|
2008-04-27 02:26:05 +08:00
|
|
|
namespace Eigen {
|
|
|
|
|
2008-07-22 18:54:42 +08:00
|
|
|
/** \defgroup QR_Module QR module
|
|
|
|
* This module mainly provides QR decomposition and an eigen value solver.
|
|
|
|
* This module also provides some MatrixBase methods, including:
|
|
|
|
* - MatrixBase::qr(),
|
|
|
|
* - MatrixBase::eigenvalues(),
|
2008-08-19 12:30:28 +08:00
|
|
|
* - MatrixBase::operatorNorm()
|
2008-07-22 18:54:42 +08:00
|
|
|
*
|
|
|
|
* \code
|
|
|
|
* #include <Eigen/QR>
|
|
|
|
* \endcode
|
|
|
|
*/
|
|
|
|
|
2008-05-13 05:15:17 +08:00
|
|
|
#include "src/QR/QR.h"
|
2008-06-02 01:20:18 +08:00
|
|
|
#include "src/QR/Tridiagonalization.h"
|
2008-05-13 05:15:17 +08:00
|
|
|
#include "src/QR/EigenSolver.h"
|
2008-06-02 08:30:26 +08:00
|
|
|
#include "src/QR/SelfAdjointEigenSolver.h"
|
2008-06-08 23:03:23 +08:00
|
|
|
#include "src/QR/HessenbergDecomposition.h"
|
2008-04-27 02:26:05 +08:00
|
|
|
|
2008-06-14 21:02:41 +08:00
|
|
|
// declare all classes for a given matrix type
|
|
|
|
#define EIGEN_QR_MODULE_INSTANTIATE_TYPE(MATRIXTYPE,PREFIX) \
|
|
|
|
PREFIX template class QR<MATRIXTYPE>; \
|
|
|
|
PREFIX template class Tridiagonalization<MATRIXTYPE>; \
|
|
|
|
PREFIX template class HessenbergDecomposition<MATRIXTYPE>; \
|
|
|
|
PREFIX template class SelfAdjointEigenSolver<MATRIXTYPE>
|
|
|
|
|
|
|
|
// removed because it does not support complex yet
|
|
|
|
// PREFIX template class EigenSolver<MATRIXTYPE>
|
|
|
|
|
|
|
|
// declare all class for all types
|
|
|
|
#define EIGEN_QR_MODULE_INSTANTIATE(PREFIX) \
|
|
|
|
EIGEN_QR_MODULE_INSTANTIATE_TYPE(Matrix2f,PREFIX); \
|
|
|
|
EIGEN_QR_MODULE_INSTANTIATE_TYPE(Matrix2d,PREFIX); \
|
|
|
|
EIGEN_QR_MODULE_INSTANTIATE_TYPE(Matrix3f,PREFIX); \
|
|
|
|
EIGEN_QR_MODULE_INSTANTIATE_TYPE(Matrix3d,PREFIX); \
|
|
|
|
EIGEN_QR_MODULE_INSTANTIATE_TYPE(Matrix4f,PREFIX); \
|
|
|
|
EIGEN_QR_MODULE_INSTANTIATE_TYPE(Matrix4d,PREFIX); \
|
|
|
|
EIGEN_QR_MODULE_INSTANTIATE_TYPE(MatrixXf,PREFIX); \
|
|
|
|
EIGEN_QR_MODULE_INSTANTIATE_TYPE(MatrixXd,PREFIX); \
|
|
|
|
EIGEN_QR_MODULE_INSTANTIATE_TYPE(MatrixXcf,PREFIX); \
|
|
|
|
EIGEN_QR_MODULE_INSTANTIATE_TYPE(MatrixXcd,PREFIX)
|
|
|
|
|
|
|
|
#ifdef EIGEN_EXTERN_INSTANTIATIONS
|
|
|
|
EIGEN_QR_MODULE_INSTANTIATE(extern);
|
|
|
|
#endif // EIGEN_EXTERN_INSTANTIATIONS
|
|
|
|
|
2008-04-27 02:26:05 +08:00
|
|
|
} // namespace Eigen
|
|
|
|
|
|
|
|
#endif // EIGEN_QR_MODULE_H
|