]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update documentation in one place. 280/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 1 Dec 2014 02:27:22 +0000 (20:27 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 1 Dec 2014 02:27:22 +0000 (20:27 -0600)
include/deal.II/base/symmetric_tensor.h

index c87fd6c19e0b760f079766d45e8d2fed82d5deec..71203e995316f94595e94b02175dd0808c01a87b 100644 (file)
@@ -2369,7 +2369,8 @@ deviator (const SymmetricTensor<2,dim,Number> &t)
 
 
 /**
- * Return a unit symmetric tensor of rank 2.
+ * Return a unit symmetric tensor of rank 2, i.e., the dim-by-dim
+ * identity matrix.
  *
  * @relates SymmetricTensor
  * @author Wolfgang Bangerth, 2005
@@ -2379,6 +2380,8 @@ inline
 SymmetricTensor<2,dim,Number>
 unit_symmetric_tensor ()
 {
+  // create a default constructed matrix filled with
+  // zeros, then set the diagonal elements to one
   SymmetricTensor<2,dim,Number> tmp;
   switch (dim)
     {
@@ -2401,7 +2404,9 @@ unit_symmetric_tensor ()
 
 
 /**
- * Return a unit symmetric tensor of rank 2 for double tensor.
+ * Return a unit symmetric tensor of rank 2, i.e., the dim-by-dim
+ * identity matrix. This specialization of the function uses
+ * <code>double</code> as the data type for the elements.
  *
  * @relates SymmetricTensor
  * @author Wolfgang Bangerth, 2005

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.