From 1927dd27437d9b4f13d7e55e74e70a76c39a1b64 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 5 Mar 2001 09:43:55 +0000 Subject: [PATCH] Doc clarification. git-svn-id: https://svn.dealii.org/trunk@4096 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/vector.h | 18 ++++++++++++++---- deal.II/lac/include/lac/vector.templates.h | 8 +++----- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/deal.II/lac/include/lac/vector.h b/deal.II/lac/include/lac/vector.h index 10e2decd66..58caee7cc3 100644 --- a/deal.II/lac/include/lac/vector.h +++ b/deal.II/lac/include/lac/vector.h @@ -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 diff --git a/deal.II/lac/include/lac/vector.templates.h b/deal.II/lac/include/lac/vector.templates.h index bc3d4d368e..bb45b600b0 100644 --- a/deal.II/lac/include/lac/vector.templates.h +++ b/deal.II/lac/include/lac/vector.templates.h @@ -586,11 +586,9 @@ void Vector::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