]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename double contraction "contract" to "double_contract"
authorMatthias Maier <tamiko@43-1.org>
Thu, 17 Sep 2015 17:48:44 +0000 (12:48 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 21 Sep 2015 00:59:11 +0000 (19:59 -0500)
include/deal.II/base/tensor.h
include/deal.II/base/tensor_deprecated.h

index 931377dc2ef8ac66fb247e4b7e73e5090ca7127e..c55abbfe0009ae62b6c23b3a5c49f9079c2b6255 100644 (file)
@@ -1575,8 +1575,8 @@ template <int index_1, int index_2, int index_3, int index_4,
           typename Number, typename OtherNumber>
 inline
 typename Tensor<rank_1 + rank_2 - 4, dim, typename ProductType<Number, OtherNumber>::type>::tensor_type
-contract (const Tensor<rank_1, dim, Number> &src1,
-          const Tensor<rank_2, dim, OtherNumber> &src2)
+double_contract (const Tensor<rank_1, dim, Number> &src1,
+                 const Tensor<rank_2, dim, OtherNumber> &src2)
 {
   Assert(0 <= index_1 && index_1 < rank_1,
          ExcMessage("The specified index_1 must lie within the range [0,rank_1)"));
index 646fe76d481fec4462db4f69d3361ec8bfeab514..9d8c5687d34d5a5344ebd9db83bd80b32bb318c2 100644 (file)
@@ -44,7 +44,7 @@ DeclException1 (ExcInvalidTensorContractionIndex,
  * Double contract two tensors of rank 2, thus computing the Frobenius inner
  * product <tt>sum<sub>i,j</sub> src1[i][j]*src2[i][j]</tt>.
  *
- * @deprecated Use the contract function that takes indices as template
+ * @deprecated Use the double_contract function that takes indices as template
  *   arguments and returns its result instead.
  * @relates Tensor
  */
@@ -59,8 +59,8 @@ Number double_contract (const Tensor<2, dim, Number> &src1,
  * <tt>src2</tt>, creating a rank-2 tensor. This is the matrix-vector product
  * analog operation between tensors of rank 4 and rank 2.
  *
- * @deprecated Use the contract function that takes indices as template
- *   arguments and returns its result instead.
+ * @deprecated Use the double_contract function that takes indices as
+ *   template arguments and returns its result instead.
  * @relates Tensor
  */
 template <int dim, typename Number>

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.