From: Jean-Paul Pelteret Date: Fri, 20 Oct 2017 05:42:00 +0000 (+0200) Subject: Add missing documentation on output vector/matrix sizes. X-Git-Tag: v9.0.0-rc1~926^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b84f4f4ca16a4f92d1025d84e29fea9c28d1e91d;p=dealii.git Add missing documentation on output vector/matrix sizes. --- diff --git a/include/deal.II/physics/notation.h b/include/deal.II/physics/notation.h index 120fc9050a..cbf0a247fe 100644 --- a/include/deal.II/physics/notation.h +++ b/include/deal.II/physics/notation.h @@ -303,6 +303,8 @@ namespace Physics /** * Convert a scalar value to its compressed vector equivalent. + * + * The output vector has one entry. */ template Vector @@ -311,6 +313,8 @@ namespace Physics /** * Convert a rank-0 tensor to its compressed vector equivalent. + * + * The output vector has one entry. */ template Vector @@ -319,6 +323,8 @@ namespace Physics /** * Convert a rank-1 tensor to its compressed vector equivalent. + * + * The output vector has $dim$ entries. */ template Vector @@ -327,6 +333,8 @@ namespace Physics /** * Convert a rank-2 tensor to its compressed vector equivalent. + * + * The output vector has Tensor<2,dim>::n_independent_components entries. */ template Vector @@ -335,6 +343,9 @@ namespace Physics /** * Convert a rank-2 symmetric tensor to its compressed vector equivalent. + * + * The output vector has SymmetricTensor<2,dim>::n_independent_components + * entries. */ template Vector @@ -343,6 +354,8 @@ namespace Physics /** * Convert a scalar value to its compressed matrix equivalent. + * + * The output matrix will have one row and one column. */ template FullMatrix @@ -351,6 +364,8 @@ namespace Physics /** * Convert a rank-0 tensor to its compressed matrix equivalent. + * + * The output matrix will have one row and one column. */ template FullMatrix @@ -359,6 +374,8 @@ namespace Physics /** * Convert a rank-1 tensor to its compressed matrix equivalent. + * + * The output matrix will have $dim$ rows and one column. */ template FullMatrix @@ -367,6 +384,8 @@ namespace Physics /** * Convert a rank-2 tensor to its compressed matrix equivalent. + * + * The output matrix will have $dim$ rows and $dim$ columns. */ template FullMatrix @@ -375,6 +394,12 @@ namespace Physics /** * Convert a rank-2 symmetric tensor to its compressed matrix equivalent. + * + * The output matrix will have $dim$ rows and $dim$ columns, with the same + * format as the equivalent function for non-symmetric tensors. This is + * because it is not possible to compress the + * SymmetricTensor<2,dim>::n_independent_components unique entries into a + * square matrix. */ template FullMatrix @@ -416,6 +441,9 @@ namespace Physics /** * Convert a rank-4 tensor to its compressed matrix equivalent. + * + * The output matrix will have Tensor<2,dim>::n_independent_components + * rows and Tensor<2,dim>::n_independent_components columns. */ template FullMatrix @@ -424,6 +452,9 @@ namespace Physics /** * Convert a rank-4 symmetric tensor to its compressed matrix equivalent. + * + * The output matrix will have SymmetricTensor<2,dim>::n_independent_components + * rows and SymmetricTensor<2,dim>::n_independent_components columns. */ template FullMatrix