From: Wolfgang Bangerth Date: Tue, 21 Dec 1999 14:28:19 +0000 (+0000) Subject: Clean up this function in an attempt to understand it. Localize variables. X-Git-Tag: v8.0.0~21256 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2d81787b24f4c261554e8b0905d5d74dff0eb5c;p=dealii.git Clean up this function in an attempt to understand it. Localize variables. git-svn-id: https://svn.dealii.org/trunk@2104 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/full_matrix.templates.h b/deal.II/lac/include/lac/full_matrix.templates.h index 10b97c8def..4d51ee7757 100644 --- a/deal.II/lac/include/lac/full_matrix.templates.h +++ b/deal.II/lac/include/lac/full_matrix.templates.h @@ -1260,18 +1260,15 @@ FullMatrix::gauss_jordan() Assert (dim_range == dim_image, ExcNotQuadratic()); vector p(n()); - unsigned int i,j,k,r; - number max, hr; - - for (i=0; i max) { @@ -1283,28 +1280,25 @@ FullMatrix::gauss_jordan() // rowinterchange if (r>j) { - for (k=0; k::gauss_jordan() el(j,j) = hr; } // columninterchange - Vector hv(n()); - for (i=0; i hv(n()); + for (unsigned int i=0; i