]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove explicit statement of template parameters on a return types.
authorJean-Paul Pelteret <jppelteret@gmail.com>
Sat, 3 Feb 2018 08:07:12 +0000 (09:07 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Sat, 3 Feb 2018 18:13:46 +0000 (19:13 +0100)
include/deal.II/base/tensor.h

index 3664211322fa282ac72377bd5084bc1d2648cd04..7460ca3803d8f1b3fb6f8c60ec032b34974f84f0 100644 (file)
@@ -203,14 +203,14 @@ public:
    * Number.
    */
   template <typename OtherNumber>
-  Tensor<0,dim,Number> &operator = (const Tensor<0,dim,OtherNumber> &rhs);
+  Tensor &operator = (const Tensor<0,dim,OtherNumber> &rhs);
 
   /**
    * This operator assigns a scalar to a tensor. This obviously requires
    * that the @p OtherNumber type is convertible to @p Number.
    */
   template <typename OtherNumber>
-  Tensor<0,dim,Number> &operator = (const OtherNumber &d);
+  Tensor &operator = (const OtherNumber &d);
 
   /**
    * Test for equality of two tensors.
@@ -228,13 +228,13 @@ public:
    * Add another scalar
    */
   template <typename OtherNumber>
-  Tensor<0,dim,Number> &operator += (const Tensor<0,dim,OtherNumber> &rhs);
+  Tensor &operator += (const Tensor<0,dim,OtherNumber> &rhs);
 
   /**
    * Subtract another scalar.
    */
   template <typename OtherNumber>
-  Tensor<0,dim,Number> &operator -= (const Tensor<0,dim,OtherNumber> &rhs);
+  Tensor &operator -= (const Tensor<0,dim,OtherNumber> &rhs);
 
   /**
    * Multiply the scalar with a <tt>factor</tt>.
@@ -242,18 +242,18 @@ public:
    * @ingroup CUDAWrappers
    */
   template <typename OtherNumber>
-  DEAL_II_CUDA_HOST_DEV Tensor<0,dim,Number> &operator *= (const OtherNumber &factor);
+  DEAL_II_CUDA_HOST_DEV Tensor &operator *= (const OtherNumber &factor);
 
   /**
    * Divide the scalar by <tt>factor</tt>.
    */
   template <typename OtherNumber>
-  Tensor<0,dim,Number> &operator /= (const OtherNumber &factor);
+  Tensor &operator /= (const OtherNumber &factor);
 
   /**
    * Tensor with inverted entries.
    */
-  Tensor<0,dim,Number>   operator - () const;
+  Tensor  operator - () const;
 
   /**
    * Reset all values to zero.
@@ -495,7 +495,7 @@ public:
    * value allowed for <tt>d</tt>, allowing the intuitive notation
    * <tt>t=0</tt> to reset all elements of the tensor to zero.
    */
-  Tensor<rank_,dim,Number> &operator = (const Number &d);
+  Tensor &operator = (const Number &d);
 
   /**
    * Test for equality of two tensors.
@@ -513,13 +513,13 @@ public:
    * Add another tensor.
    */
   template <typename OtherNumber>
-  Tensor<rank_,dim,Number> &operator += (const Tensor<rank_,dim,OtherNumber> &);
+  Tensor &operator += (const Tensor<rank_,dim,OtherNumber> &);
 
   /**
    * Subtract another tensor.
    */
   template <typename OtherNumber>
-  Tensor<rank_,dim,Number> &operator -= (const Tensor<rank_,dim,OtherNumber> &);
+  Tensor &operator -= (const Tensor<rank_,dim,OtherNumber> &);
 
   /**
    * Scale the tensor by <tt>factor</tt>, i.e. multiply all components by
@@ -528,18 +528,18 @@ public:
    * @ingroup CUDAWrappers
    */
   template <typename OtherNumber>
-  DEAL_II_CUDA_HOST_DEV Tensor<rank_,dim,Number> &operator *= (const OtherNumber &factor);
+  DEAL_II_CUDA_HOST_DEV Tensor &operator *= (const OtherNumber &factor);
 
   /**
    * Scale the vector by <tt>1/factor</tt>.
    */
   template <typename OtherNumber>
-  Tensor<rank_,dim,Number> &operator /= (const OtherNumber &factor);
+  Tensor &operator /= (const OtherNumber &factor);
 
   /**
    * Unary minus operator. Negate all entries of a tensor.
    */
-  Tensor<rank_,dim,Number>   operator - () const;
+  Tensor  operator - () const;
 
   /**
    * Reset all values to zero.

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.