From 8ddd09ba1a1b45839f8cf35507024926fcb10360 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 23 Dec 2022 14:24:27 -0500 Subject: [PATCH] small cleanup in tridiagonal_matrix.cc --- source/lac/tridiagonal_matrix.cc | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/source/lac/tridiagonal_matrix.cc b/source/lac/tridiagonal_matrix.cc index 8f0433cc63..48e53f65ae 100644 --- a/source/lac/tridiagonal_matrix.cc +++ b/source/lac/tridiagonal_matrix.cc @@ -90,15 +90,12 @@ TridiagonalMatrix::vmult(Vector & w, if (n() == 0) return; - // The actual loop skips the first - // and last row + // The actual loop skips the first and last row const size_type e = n() - 1; - // Let iterators point to the first - // entry of each diagonal + // Let iterators point to the first entry of each diagonal typename std::vector::const_iterator d = diagonal.begin(); typename std::vector::const_iterator r = right.begin(); - // The left diagonal starts one - // later or is equal to the right + // The left diagonal starts one later or is equal to the right // one for symmetric storage typename std::vector::const_iterator l = left.begin(); if (is_symmetric) @@ -135,7 +132,7 @@ void TridiagonalMatrix::vmult_add(Vector & w, const Vector &v) const { - vmult(w, v, true); + vmult(w, v, /*adding = */ true); } @@ -269,14 +266,6 @@ TridiagonalMatrix::eigenvalue(const size_type i) const } -/* -template -TridiagonalMatrix:: -{ -} - - -*/ template class TridiagonalMatrix; template class TridiagonalMatrix; -- 2.39.5