From: Timo Heister Date: Fri, 23 Dec 2022 19:24:27 +0000 (-0500) Subject: small cleanup in tridiagonal_matrix.cc X-Git-Tag: v9.5.0-rc1~710^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14612%2Fhead;p=dealii.git small cleanup in tridiagonal_matrix.cc --- 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;