From: Jean-Paul Pelteret Date: Sat, 3 Feb 2018 08:07:12 +0000 (+0100) Subject: Remove explicit statement of template parameters on a return types. X-Git-Tag: v9.0.0-rc1~454^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7661c60bace2c1ca98b173758c0edb6bff8a7776;p=dealii.git Remove explicit statement of template parameters on a return types. --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index 3664211322..7460ca3803 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -203,14 +203,14 @@ public: * Number. */ template - 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 - 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 - Tensor<0,dim,Number> &operator += (const Tensor<0,dim,OtherNumber> &rhs); + Tensor &operator += (const Tensor<0,dim,OtherNumber> &rhs); /** * Subtract another scalar. */ template - Tensor<0,dim,Number> &operator -= (const Tensor<0,dim,OtherNumber> &rhs); + Tensor &operator -= (const Tensor<0,dim,OtherNumber> &rhs); /** * Multiply the scalar with a factor. @@ -242,18 +242,18 @@ public: * @ingroup CUDAWrappers */ template - 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 factor. */ template - 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 d, allowing the intuitive notation * t=0 to reset all elements of the tensor to zero. */ - Tensor &operator = (const Number &d); + Tensor &operator = (const Number &d); /** * Test for equality of two tensors. @@ -513,13 +513,13 @@ public: * Add another tensor. */ template - Tensor &operator += (const Tensor &); + Tensor &operator += (const Tensor &); /** * Subtract another tensor. */ template - Tensor &operator -= (const Tensor &); + Tensor &operator -= (const Tensor &); /** * Scale the tensor by factor, i.e. multiply all components by @@ -528,18 +528,18 @@ public: * @ingroup CUDAWrappers */ template - DEAL_II_CUDA_HOST_DEV Tensor &operator *= (const OtherNumber &factor); + DEAL_II_CUDA_HOST_DEV Tensor &operator *= (const OtherNumber &factor); /** * Scale the vector by 1/factor. */ template - Tensor &operator /= (const OtherNumber &factor); + Tensor &operator /= (const OtherNumber &factor); /** * Unary minus operator. Negate all entries of a tensor. */ - Tensor operator - () const; + Tensor operator - () const; /** * Reset all values to zero.