]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Cleanup of comments.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 23 Sep 2009 06:27:05 +0000 (06:27 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 23 Sep 2009 06:27:05 +0000 (06:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@19499 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-37/doc/intro.dox
deal.II/lac/include/lac/vector.h

index 0dc7a4d166546f1ca29477e16a0be6aa7930d433..f8e8367b4718f494962a16d5453a741c82913ef9 100644 (file)
@@ -8,8 +8,8 @@
 
 This example shows how to implement a matrix-free method, that is, a method
 that does not explicitly store the matrix elements, for a
-second-order Poisson equation with variable coefficients on an unstructured
-mesh.
+second-order Poisson equation with variable coefficients on a rather 
+unstructured mesh representing a circle.
 
 <h3>Matrix-vector product implementation</h3>
 
@@ -195,7 +195,7 @@ elements as there are degrees of freedom on the actual cell to compute. The
 multiplication itself is then done by two nested loops, which means that it
 is much cheaper.
 
-A naive way to improve this is to realize that we actually build the local
+One way to improve this is to realize that we actually build the local
 matrix by a product of three matrices,
 @f{eqnarray*}
 A_\mathrm{cell} = B D B^T.
@@ -258,9 +258,9 @@ weight. The third loop applies the second gradient (in transposed form), so
 that we get back to a vector of (Laplacian) values on the cell dofs.
 
 This improves the situation a lot and reduced the complexity of the product
-from something like $\mathcal {O}(\mathrm{dofs_per_cell}^3)$ to $\mathcal
-{O}(\mathrm{dofs_per_cell}^2)$. In fact, all the remainder is just to make a
-slightly more clever use of data in order to gain some extra speed. It does
+from something like $\mathcal {O}(\mathrm{dofs\_per\_cell}^3)$ to $\mathcal
+{O}(\mathrm{dofs\_per\_cell}^2)$. In fact, all the remainder is just to make
+slightly more clever use of data in order to gain some extra speed. It does
 not change the code structure, though.
 
 If one would implement the code above, one would soon realize that the
index ccec8767780993883c4d7c37b726fac349a022e8..9cade6f7f1a71e0d911b98787605ca9539bb020f 100644 (file)
@@ -972,6 +972,8 @@ class Vector : public Subscriptor
 /*----------------------- Inline functions ----------------------------------*/
 
 
+#ifndef DOXYGEN
+
 
 template <typename Number>
 inline
@@ -1296,11 +1298,11 @@ Vector<Number>::scale (const Number factor)
 
 
 template <typename Number>
-template <typename Number2>
+template <typename OtherNumber>
 inline
 void
 Vector<Number>::add (const std::vector<unsigned int> &indices,
-                    const std::vector<Number2>      &values)
+                    const std::vector<OtherNumber>  &values)
 {
   Assert (indices.size() == values.size(),
          ExcDimensionMismatch(indices.size(), values.size()));
@@ -1310,11 +1312,11 @@ Vector<Number>::add (const std::vector<unsigned int> &indices,
 
 
 template <typename Number>
-template <typename Number2>
+template <typename OtherNumber>
 inline
 void
 Vector<Number>::add (const std::vector<unsigned int> &indices,
-                    const Vector<Number2>           &values)
+                    const Vector<OtherNumber>       &values)
 {
   Assert (indices.size() == values.size(),
          ExcDimensionMismatch(indices.size(), values.size()));
@@ -1324,12 +1326,12 @@ Vector<Number>::add (const std::vector<unsigned int> &indices,
 
 
 template <typename Number>
-template <typename Number2>
+template <typename OtherNumber>
 inline
 void
 Vector<Number>::add (const unsigned int  n_indices,
                     const unsigned int *indices,
-                    const Number2      *values)
+                    const OtherNumber  *values)
 {
   for (unsigned int i=0; i<n_indices; ++i)
     {
@@ -1424,6 +1426,8 @@ Vector<Number>::swap (Vector<Number> &v)
 
 
 
+#endif
+
 
 /*! @addtogroup Vectors
  *@{

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.