From: David Wells Date: Thu, 15 Mar 2018 20:03:12 +0000 (-0400) Subject: Fix some (rectangular) FullMatrix methods. X-Git-Tag: v9.0.0-rc1~322^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=724ac687914976005b5ec631d8c9fdcfdd29d063;p=dealii.git Fix some (rectangular) FullMatrix methods. --- diff --git a/include/deal.II/lac/full_matrix.templates.h b/include/deal.II/lac/full_matrix.templates.h index b511693b1f..9859a8992e 100644 --- a/include/deal.II/lac/full_matrix.templates.h +++ b/include/deal.II/lac/full_matrix.templates.h @@ -255,10 +255,10 @@ number FullMatrix::residual (Vector &dst, number res = 0.; const size_type size_m = m(), size_n = n(); - for (size_type i=0; i::add_row (const size_type i, { Assert (!this->empty(), ExcEmptyMatrix()); - for (size_type k=0; k::add_row (const size_type i, { Assert (!this->empty(), ExcEmptyMatrix()); - const size_type size_m = m(); + const size_type size_m = n(); for (size_type l=0; l::add_col (const size_type i, const number s, { Assert (!this->empty(), ExcEmptyMatrix()); - for (size_type k=0; k::add_col (const size_type i, const number s, { Assert (!this->empty(), ExcEmptyMatrix()); - for (size_t l=0; l