]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix_minor_flaw_in_documentation 5951/head
authorBenjamin Brands <benjamin.brands@fau.de>
Thu, 22 Feb 2018 23:59:35 +0000 (00:59 +0100)
committerBenjamin Brands <benjamin.brands@fau.de>
Fri, 23 Feb 2018 10:00:17 +0000 (11:00 +0100)
include/deal.II/base/table.h

index 4526cd1514c5a53df3aedc83e20be4d9d8b9e45b..d568d0b9cbc6107f40b3ba0fdfdb750d622d84b7 100644 (file)
@@ -538,16 +538,16 @@ public:
    * in the equivalent of doing
    * @code
    *   Table<2,T> t;
-   *   for (unsigned int i=0; i<t.sizes()[0]; ++i)
-   *     for (unsigned int j=0; j<t.sizes()[1]; ++j)
+   *   for (unsigned int i=0; i<t.size(0); ++i)
+   *     for (unsigned int j=0; j<t.size(1); ++j)
    *       t[i][j] = *entries++;
    * @endcode
    * On the other hand, if the second argument to this function is false, then
    * this would result in code of the following form:
    * @code
    *   Table<2,T> t;
-   *   for (unsigned int j=0; j<t.sizes()[1]; ++j)
-   *     for (unsigned int i=0; i<t.sizes()[0]; ++i)
+   *   for (unsigned int j=0; j<t.size(1); ++j)
+   *     for (unsigned int i=0; i<t.size(0); ++i)
    *       t[i][j] = *entries++;
    * @endcode
    * Note the switched order in which we fill the table elements by traversing

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.