]> https://gitweb.dealii.org/ - dealii.git/commitdiff
documentation added
authorBaerbel Jannsen <baerbel.janssen@gmail.com>
Tue, 5 Jan 2010 10:16:05 +0000 (10:16 +0000)
committerBaerbel Jannsen <baerbel.janssen@gmail.com>
Tue, 5 Jan 2010 10:16:05 +0000 (10:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@20287 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/householder.h

index 76ee424b66e5d9b7ffe84c1691b84d59b6e9a562..c9a90496d609cf585c0614c46b86c2d516634266 100644 (file)
@@ -93,6 +93,10 @@ class Householder : private FullMatrix<number>
     double least_squares (Vector<number2> &dst,
                          const Vector<number2> &src) const;
 
+                                    /**
+                                      * This function does the same as 
+                                      * the one for BlockVectors.
+                                     */
     template<typename number2>
     double least_squares (BlockVector<number2> &dst,
                          const BlockVector<number2> &src) const;
@@ -261,13 +265,13 @@ Householder<number>::least_squares (BlockVector<number2>& dst,
   number2 sum = 0.;
   for (unsigned int i=n ; i<m ; ++i)
     sum += (*aux)(i) * (*aux)(i);
-                                  // Compute solution
                                    //backward works for 
                                    //Vectors only, so copy 
                                    //them before
   Vector<number2> v_dst, v_aux;
   v_dst = dst;
   v_aux = *aux;
+                                  // Compute solution
   this->backward(v_dst, v_aux);
 
   mem.free(aux);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.