diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-11-26 15:39:01 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-11-26 15:39:01 +0100 |
commit | d551e99644465385aacc6b3eaa85883b5820ca91 (patch) | |
tree | abd22de0d3063a463c295d8843d2633c9e8e6f95 /Eigen | |
parent | e06c6553e00bbcd3f97663cbfeae3f2ce7f113fb (diff) |
make HessenbergDecompositionMatrixHReturnType internal
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Eigenvalues/HessenbergDecomposition.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Eigen/src/Eigenvalues/HessenbergDecomposition.h b/Eigen/src/Eigenvalues/HessenbergDecomposition.h index b7da136a8..9333d81a2 100644 --- a/Eigen/src/Eigenvalues/HessenbergDecomposition.h +++ b/Eigen/src/Eigenvalues/HessenbergDecomposition.h @@ -26,14 +26,15 @@ #ifndef EIGEN_HESSENBERGDECOMPOSITION_H #define EIGEN_HESSENBERGDECOMPOSITION_H -template<typename MatrixType> struct HessenbergDecompositionMatrixHReturnType; - namespace internal { + +template<typename MatrixType> struct HessenbergDecompositionMatrixHReturnType; template<typename MatrixType> struct traits<HessenbergDecompositionMatrixHReturnType<MatrixType> > { typedef MatrixType ReturnType; }; + } /** \eigenvalues_module \ingroup Eigenvalues_Module @@ -95,6 +96,8 @@ template<typename _MatrixType> class HessenbergDecomposition /** \brief Return type of matrixQ() */ typedef typename HouseholderSequence<MatrixType,CoeffVectorType>::ConjugateReturnType HouseholderSequenceType; + + typedef internal::HessenbergDecompositionMatrixHReturnType<MatrixType> MatrixHReturnType; /** \brief Default constructor; the decomposition will be computed later. * @@ -265,10 +268,10 @@ template<typename _MatrixType> class HessenbergDecomposition * * \sa matrixQ(), packedMatrix() */ - HessenbergDecompositionMatrixHReturnType<MatrixType> matrixH() const + MatrixHReturnType matrixH() const { eigen_assert(m_isInitialized && "HessenbergDecomposition is not initialized."); - return HessenbergDecompositionMatrixHReturnType<MatrixType>(*this); + return MatrixHReturnType(*this); } private: @@ -325,6 +328,8 @@ void HessenbergDecomposition<MatrixType>::_compute(MatrixType& matA, CoeffVector } } +namespace internal { + /** \eigenvalues_module \ingroup Eigenvalues_Module * * @@ -372,4 +377,6 @@ template<typename MatrixType> struct HessenbergDecompositionMatrixHReturnType const HessenbergDecomposition<MatrixType>& m_hess; }; +} + #endif // EIGEN_HESSENBERGDECOMPOSITION_H |