From c5d7c9f0def693e77797e6e43cb1fd2e7f8ae2fd Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 7 Jan 2010 21:15:32 +0100 Subject: remove the Triangular suffix to Upper, Lower, UnitLower, etc, and remove the respective bit flags --- Eigen/src/Cholesky/LLT.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'Eigen/src/Cholesky/LLT.h') diff --git a/Eigen/src/Cholesky/LLT.h b/Eigen/src/Cholesky/LLT.h index 02645b23f..8a149a316 100644 --- a/Eigen/src/Cholesky/LLT.h +++ b/Eigen/src/Cholesky/LLT.h @@ -148,7 +148,7 @@ template class LLT // forward declaration (defined at the end of this file) template struct ei_llt_inplace; -template<> struct ei_llt_inplace +template<> struct ei_llt_inplace { template static bool unblocked(MatrixType& mat) @@ -198,47 +198,47 @@ template<> struct ei_llt_inplace Block A22(m,k+bs,k+bs,rs,rs); if(!unblocked(A11)) return false; - if(rs>0) A11.adjoint().template triangularView().template solveInPlace(A21); - if(rs>0) A22.template selfadjointView().rankUpdate(A21,-1); // bottleneck + if(rs>0) A11.adjoint().template triangularView().template solveInPlace(A21); + if(rs>0) A22.template selfadjointView().rankUpdate(A21,-1); // bottleneck } return true; } }; -template<> struct ei_llt_inplace +template<> struct ei_llt_inplace { template static EIGEN_STRONG_INLINE bool unblocked(MatrixType& mat) { Transpose matt(mat); - return ei_llt_inplace::unblocked(matt); + return ei_llt_inplace::unblocked(matt); } template static EIGEN_STRONG_INLINE bool blocked(MatrixType& mat) { Transpose matt(mat); - return ei_llt_inplace::blocked(matt); + return ei_llt_inplace::blocked(matt); } }; -template struct LLT_Traits +template struct LLT_Traits { - typedef TriangularView MatrixL; - typedef TriangularView MatrixU; + typedef TriangularView MatrixL; + typedef TriangularView MatrixU; inline static MatrixL getL(const MatrixType& m) { return m; } inline static MatrixU getU(const MatrixType& m) { return m.adjoint(); } static bool inplace_decomposition(MatrixType& m) - { return ei_llt_inplace::blocked(m); } + { return ei_llt_inplace::blocked(m); } }; -template struct LLT_Traits +template struct LLT_Traits { - typedef TriangularView MatrixL; - typedef TriangularView MatrixU; + typedef TriangularView MatrixL; + typedef TriangularView MatrixU; inline static MatrixL getL(const MatrixType& m) { return m.adjoint(); } inline static MatrixU getU(const MatrixType& m) { return m; } static bool inplace_decomposition(MatrixType& m) - { return ei_llt_inplace::blocked(m); } + { return ei_llt_inplace::blocked(m); } }; /** Computes / recomputes the Cholesky decomposition A = LL^* = U^*U of \a matrix -- cgit v1.2.3