]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Provide more explanation for the Tvmult function.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Feb 2013 00:07:11 +0000 (00:07 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 21 Feb 2013 00:07:11 +0000 (00:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@28499 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-20/step-20.cc

index 49bb88bd09c133a432b1072ce7ba4e9f63bc010f..4bc9d5ef8ac7a046491a01f428964ac6ad574209 100644 (file)
@@ -607,8 +607,15 @@ namespace Step20
   // step. Consequently, the class also does not have to store a pointer to an
   // inverse mass matrix object.
   //
-  // Since InverseIterate follows the standard convention for matrices, we
-  // need to provide a <tt>Tvmult</tt> function here as well.
+  // We will later use this class as a template argument to the
+  // IterativeInverse class which will in turn want to use it as a
+  // template argument for the PointerMatrix class. The latter class
+  // has a function that requires us to also write a function that
+  // provides the product with the transpose of the matrix this object
+  // represents. As a consequence, in the code below, we also
+  // implement a <tt>Tvmult</tt> function here that represents the
+  // product of the transpose matrix with a vector. It is easy to see
+  // how this needs to be implemented here.
   class ApproximateSchurComplement : public Subscriptor
   {
   public:

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.