diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-12-10 12:03:38 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-12-10 12:03:38 +0100 |
commit | 145ad5d8007f8a81dbe0cbfa9f97b11a32e9fba2 (patch) | |
tree | 6dbc2c3ae095e405400ac8df4244d324ca428263 /Eigen/src/Core/SolveTriangular.h | |
parent | 75f0fe3795e6e04c338f01ab383b0a3d9a6be334 (diff) |
Use more explicit names.
Diffstat (limited to 'Eigen/src/Core/SolveTriangular.h')
-rw-r--r-- | Eigen/src/Core/SolveTriangular.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Eigen/src/Core/SolveTriangular.h b/Eigen/src/Core/SolveTriangular.h index 4914f6ba8..5a2010449 100644 --- a/Eigen/src/Core/SolveTriangular.h +++ b/Eigen/src/Core/SolveTriangular.h @@ -115,17 +115,17 @@ template<typename Lhs, typename Rhs, int Mode, int LoopIndex, int Size> struct triangular_solver_unroller<Lhs,Rhs,Mode,LoopIndex,Size,false> { enum { IsLower = ((Mode&Lower)==Lower), - RowIndex = IsLower ? LoopIndex : Size - LoopIndex - 1, - S = IsLower ? 0 : RowIndex+1 + DiagIndex = IsLower ? LoopIndex : Size - LoopIndex - 1, + StartIndex = IsLower ? 0 : DiagIndex+1 }; static void run(const Lhs& lhs, Rhs& rhs) { if (LoopIndex>0) - rhs.coeffRef(RowIndex) -= lhs.row(RowIndex).template segment<LoopIndex>(S).transpose() - .cwiseProduct(rhs.template segment<LoopIndex>(S)).sum(); + rhs.coeffRef(DiagIndex) -= lhs.row(DiagIndex).template segment<LoopIndex>(StartIndex).transpose() + .cwiseProduct(rhs.template segment<LoopIndex>(StartIndex)).sum(); if(!(Mode & UnitDiag)) - rhs.coeffRef(RowIndex) /= lhs.coeff(RowIndex,RowIndex); + rhs.coeffRef(DiagIndex) /= lhs.coeff(DiagIndex,DiagIndex); triangular_solver_unroller<Lhs,Rhs,Mode,LoopIndex+1,Size>::run(lhs,rhs); } |