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/Sparse/TriangularSolver.h | 56 ++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'Eigen/src/Sparse/TriangularSolver.h') diff --git a/Eigen/src/Sparse/TriangularSolver.h b/Eigen/src/Sparse/TriangularSolver.h index 5b761e6ad..039424bf0 100644 --- a/Eigen/src/Sparse/TriangularSolver.h +++ b/Eigen/src/Sparse/TriangularSolver.h @@ -26,17 +26,17 @@ #define EIGEN_SPARSETRIANGULARSOLVER_H template::Flags) & RowMajorBit> struct ei_sparse_solve_triangular_selector; // forward substitution, row-major template -struct ei_sparse_solve_triangular_selector +struct ei_sparse_solve_triangular_selector { typedef typename Rhs::Scalar Scalar; static void run(const Lhs& lhs, Rhs& other) @@ -56,7 +56,7 @@ struct ei_sparse_solve_triangular_selector -struct ei_sparse_solve_triangular_selector +struct ei_sparse_solve_triangular_selector { typedef typename Rhs::Scalar Scalar; static void run(const Lhs& lhs, Rhs& other) @@ -88,7 +88,7 @@ struct ei_sparse_solve_triangular_selector -struct ei_sparse_solve_triangular_selector +struct ei_sparse_solve_triangular_selector { typedef typename Rhs::Scalar Scalar; static void run(const Lhs& lhs, Rhs& other) @@ -116,7 +116,7 @@ struct ei_sparse_solve_triangular_selector -struct ei_sparse_solve_triangular_selector +struct ei_sparse_solve_triangular_selector { typedef typename Rhs::Scalar Scalar; static void run(const Lhs& lhs, Rhs& other) @@ -145,7 +145,7 @@ struct ei_sparse_solve_triangular_selector::solveInPlace(MatrixBase::Flags & RowMajorBit }; @@ -194,10 +194,10 @@ SparseTriangularView::solve(const MatrixBase& // pure sparse path template struct ei_sparse_solve_triangular_sparse_selector; @@ -209,7 +209,7 @@ struct ei_sparse_solve_triangular_sparse_selector typedef typename Rhs::Scalar Scalar; static void run(const Lhs& lhs, Rhs& other) { - const bool IsLowerTriangular = (UpLo==LowerTriangular); + const bool IsLower = (UpLo==Lower); AmbiVector tempVector(other.rows()*2); tempVector.setBounds(0,other.rows()); @@ -227,9 +227,9 @@ struct ei_sparse_solve_triangular_sparse_selector tempVector.coeffRef(rhsIt.index()) = rhsIt.value(); } - for(int i=IsLowerTriangular?0:lhs.cols()-1; - IsLowerTriangular?i=0; - i+=IsLowerTriangular?1:-1) + for(int i=IsLower?0:lhs.cols()-1; + IsLower?i=0; + i+=IsLower?1:-1) { tempVector.restart(); Scalar& ci = tempVector.coeffRef(i); @@ -237,9 +237,9 @@ struct ei_sparse_solve_triangular_sparse_selector { // find typename Lhs::InnerIterator it(lhs, i); - if(!(Mode & UnitDiagBit)) + if(!(Mode & UnitDiag)) { - if (IsLowerTriangular) + if (IsLower) { ei_assert(it.index()==i); ci /= it.value(); @@ -248,7 +248,7 @@ struct ei_sparse_solve_triangular_sparse_selector ci /= lhs.coeff(i,i); } tempVector.restart(); - if (IsLowerTriangular) + if (IsLower) { if (it.index()==i) ++it; @@ -287,8 +287,8 @@ void SparseTriangularView::solveInPlace(SparseMatrixBase::Flags & RowMajorBit }; @@ -311,7 +311,7 @@ template template void SparseMatrixBase::solveTriangularInPlace(MatrixBase& other) const { - this->template triangular().solveInPlace(other); + this->template triangular().solveInPlace(other); } /** \deprecated */ -- cgit v1.2.3