]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Doc clarification.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 5 Mar 2001 09:43:55 +0000 (09:43 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 5 Mar 2001 09:43:55 +0000 (09:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@4096 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/vector.h
deal.II/lac/include/lac/vector.templates.h

index 10e2decd66fd733d1f1c0b008ead43d8ffbfd1ad..58caee7cc3dce7254d9bbf36a4a0055ca9f359bf 100644 (file)
@@ -416,13 +416,23 @@ class Vector
     void print (const char* format = 0) const;
 
                                     /**
-                                     * Print to a stream.
-                                     * 
+                                     * Print to a
+                                     * stream. @p{precision} denotes
+                                     * the desired precision with
+                                     * which values shall be printed,
+                                     * @p{scientific} whether
+                                     * scientific notation shall be
+                                     * used. If @p{across} is
+                                     * @p{true} then the vector is
+                                     * printed in a line, while if
+                                     * @p{false} then the elements
+                                     * are printed on a separate line
+                                     * each.
                                      */
     void print (std::ostream       &out,
-               const unsigned int  precision = 3,
+               const unsigned int  precision  = 3,
                const bool          scientific = true,
-               const bool          across = true) const;
+               const bool          across     = true) const;
 
                                     /**
                                      * Write the vector en bloc to a file. This
index bc3d4d368e9a4bced3a3927380fab75de047b655..bb45b600b09c08f320ad23614a4e5e2e8d91bacf 100644 (file)
@@ -586,11 +586,9 @@ void Vector<Number>::print (std::ostream      &out,
 
   out.precision (precision);
   if (scientific)
-    {
-      out.setf (std::ios::scientific, std::ios::floatfield);
-    } else {
-      out.setf (std::ios::fixed, std::ios::floatfield);
-    }
+    out.setf (std::ios::scientific, std::ios::floatfield);
+  else
+    out.setf (std::ios::fixed, std::ios::floatfield);
 
   if (across)
     for (unsigned int i=0; i<size(); ++i)

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.