From 12defbfac0712e24aef7e3e4497f3c69df1b029d Mon Sep 17 00:00:00 2001 From: schrage Date: Wed, 28 Apr 1999 14:01:20 +0000 Subject: [PATCH] Extensions to the text. git-svn-id: https://svn.dealii.org/trunk@1218 0785d39b-7218-0410-832d-ea1e28bc413d --- .../chapter-1.elements/matrix_generation.html | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/deal.II/doc/tutorial/chapter-1.elements/matrix_generation.html b/deal.II/doc/tutorial/chapter-1.elements/matrix_generation.html index 09ad3d2352..2446786e06 100644 --- a/deal.II/doc/tutorial/chapter-1.elements/matrix_generation.html +++ b/deal.II/doc/tutorial/chapter-1.elements/matrix_generation.html @@ -150,6 +150,43 @@ A.reinit(smstruct); +

Vector Generation

+ +

+Vector operations are supplied by the class +Vector. +The first and most important operation on a vector is its initialization +using void Vector::reinit(const usigned int N, const bool fast=false). +

+ +

+In addition to standard vector operations such as addition, multiplication with +a vector etc. deal.II provides several vector norms, too: +

+ + + +

+Example:Continuing the above example, +we initialize the vector for the right hand side. Recall that the problem +matrix is a sparse square matrix of size +dof.n_dofs()2. +

+
+
+#include <lac/vector.h>
+
+Vector<double> f;
+
+f.reinit(dof.n_dofs());
+
+
+ +
-- 2.39.5