2008-05-01 21:53:05 +08:00
|
|
|
#ifndef EIGEN_CHOLESKY_MODULE_H
|
|
|
|
#define EIGEN_CHOLESKY_MODULE_H
|
|
|
|
|
|
|
|
#include "Core"
|
|
|
|
|
2008-12-19 04:48:02 +08:00
|
|
|
#include "src/Core/util/DisableMSVCWarnings.h"
|
|
|
|
|
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-05-01 21:53:05 +08:00
|
|
|
namespace Eigen {
|
|
|
|
|
2008-07-22 18:54:42 +08:00
|
|
|
/** \defgroup Cholesky_Module Cholesky module
|
|
|
|
* This module provides two variants of the Cholesky decomposition for selfadjoint (hermitian) matrices.
|
|
|
|
* Those decompositions are accessible via the following MatrixBase methods:
|
2008-10-13 23:53:27 +08:00
|
|
|
* - MatrixBase::llt(),
|
|
|
|
* - MatrixBase::ldlt()
|
2008-07-22 18:54:42 +08:00
|
|
|
*
|
|
|
|
* \code
|
|
|
|
* #include <Eigen/Cholesky>
|
|
|
|
* \endcode
|
|
|
|
*/
|
|
|
|
|
2008-08-16 15:09:39 +08:00
|
|
|
#include "src/Array/CwiseOperators.h"
|
|
|
|
#include "src/Array/Functors.h"
|
2008-10-13 23:53:27 +08:00
|
|
|
#include "src/Cholesky/LLT.h"
|
|
|
|
#include "src/Cholesky/LDLT.h"
|
2008-05-01 21:53:05 +08:00
|
|
|
|
|
|
|
} // namespace Eigen
|
|
|
|
|
2008-06-14 21:02:41 +08:00
|
|
|
#define EIGEN_CHOLESKY_MODULE_INSTANTIATE_TYPE(MATRIXTYPE,PREFIX) \
|
|
|
|
PREFIX template class Cholesky<MATRIXTYPE>; \
|
|
|
|
PREFIX template class CholeskyWithoutSquareRoot<MATRIXTYPE>
|
|
|
|
|
|
|
|
#define EIGEN_CHOLESKY_MODULE_INSTANTIATE(PREFIX) \
|
|
|
|
EIGEN_CHOLESKY_MODULE_INSTANTIATE_TYPE(Matrix2f,PREFIX); \
|
|
|
|
EIGEN_CHOLESKY_MODULE_INSTANTIATE_TYPE(Matrix2d,PREFIX); \
|
|
|
|
EIGEN_CHOLESKY_MODULE_INSTANTIATE_TYPE(Matrix3f,PREFIX); \
|
|
|
|
EIGEN_CHOLESKY_MODULE_INSTANTIATE_TYPE(Matrix3d,PREFIX); \
|
|
|
|
EIGEN_CHOLESKY_MODULE_INSTANTIATE_TYPE(Matrix4f,PREFIX); \
|
|
|
|
EIGEN_CHOLESKY_MODULE_INSTANTIATE_TYPE(Matrix4d,PREFIX); \
|
|
|
|
EIGEN_CHOLESKY_MODULE_INSTANTIATE_TYPE(MatrixXf,PREFIX); \
|
|
|
|
EIGEN_CHOLESKY_MODULE_INSTANTIATE_TYPE(MatrixXd,PREFIX); \
|
|
|
|
EIGEN_CHOLESKY_MODULE_INSTANTIATE_TYPE(MatrixXcf,PREFIX); \
|
|
|
|
EIGEN_CHOLESKY_MODULE_INSTANTIATE_TYPE(MatrixXcd,PREFIX)
|
|
|
|
|
|
|
|
#ifdef EIGEN_EXTERN_INSTANTIATIONS
|
|
|
|
|
|
|
|
namespace Eigen {
|
|
|
|
EIGEN_CHOLESKY_MODULE_INSTANTIATE(extern);
|
|
|
|
} // namespace Eigen
|
|
|
|
#endif
|
|
|
|
|
2008-12-19 04:48:02 +08:00
|
|
|
#include "src/Core/util/EnableMSVCWarnings.h"
|
|
|
|
|
2008-05-01 21:53:05 +08:00
|
|
|
#endif // EIGEN_CHOLESKY_MODULE_H
|