]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Extensions to the text.
authorschrage <schrage@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Apr 1999 14:01:20 +0000 (14:01 +0000)
committerschrage <schrage@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Apr 1999 14:01:20 +0000 (14:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@1218 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/tutorial/chapter-1.elements/matrix_generation.html

index 09ad3d2352bb5ad55946ffee31f100915706a53a..2446786e0655e7eef50076857339183165436ca8 100644 (file)
@@ -150,6 +150,43 @@ A.reinit(smstruct);
 </pre>
 
 
+<h2>Vector Generation</h2>
+
+<p>
+Vector operations are supplied by the class 
+<code><a href="http://gaia.iwr.uni-heidelberg.de/~deal/doc/auto/kdoc/lac/Vector.html">Vector</a></code>.
+The first and most important operation on a vector is its initialization
+using <code>void Vector::reinit(const usigned int N, const bool fast=false)</code>.
+</p>
+
+<p>
+In addition to standard vector operations such as addition, multiplication with
+a vector etc. <acronym>deal.II</acronym> provides several vector norms, too:
+</p>
+
+<ul>
+  <li>the l1-norm: <code>Number Vector::l1_norm() const</code></li>
+  <li>the l2-norm: <code>Number Vector::l2_norm() const</code></li>
+  <li>the infinity-norm: <code>Number Vector::infty_norm() const</code></li>
+</ul>
+
+<p class="Example">
+<span class="example">Example:</span>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 
+<code>dof.n_dofs()<sup>2</sup></code>. 
+</p>
+<pre class="example">
+<code>
+#include &lt;lac/vector.h&gt;
+
+Vector&lt;double&gt; f;
+
+f.reinit(dof.n_dofs());
+</code>
+</pre>
+
+
 <!-- Page Foot -->
 <hr>
 <table class="navbar">      

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.