From 690bc950f70c61075d396671e63480bbd64bb297 Mon Sep 17 00:00:00 2001 From: Jan Prach Date: Wed, 20 Jan 2016 19:35:59 -0800 Subject: fix clang warnings "braces around scalar initializer" --- unsupported/Eigen/CXX11/src/Tensor/Tensor.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/Tensor.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/Tensor.h b/unsupported/Eigen/CXX11/src/Tensor/Tensor.h index dc6ca4909..092e30c1f 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/Tensor.h @@ -119,7 +119,7 @@ class Tensor : public TensorBase{{firstIndex, secondIndex, otherIndices...}}); + return coeff(array{firstIndex, secondIndex, otherIndices...}); } #endif @@ -159,7 +159,7 @@ class Tensor : public TensorBase{{firstIndex, secondIndex, otherIndices...}}); + return coeffRef(array{firstIndex, secondIndex, otherIndices...}); } #endif @@ -199,7 +199,7 @@ class Tensor : public TensorBaseoperator()(array{{firstIndex, secondIndex, otherIndices...}}); + return this->operator()(array{firstIndex, secondIndex, otherIndices...}); } #else EIGEN_DEVICE_FUNC @@ -266,7 +266,7 @@ class Tensor : public TensorBase{{firstIndex, secondIndex, otherIndices...}}); + return operator()(array{firstIndex, secondIndex, otherIndices...}); } #else EIGEN_DEVICE_FUNC @@ -342,7 +342,7 @@ class Tensor : public TensorBase EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tensor(Index firstDimension, IndexTypes... otherDimensions) - : m_storage(internal::array_prod(array{{firstDimension, otherDimensions...}}), array{{firstDimension, otherDimensions...}}) + : m_storage(internal::array_prod(array{firstDimension, otherDimensions...}), array{firstDimension, otherDimensions...}) { // The number of dimensions used to construct a tensor must be equal to the rank of the tensor. EIGEN_STATIC_ASSERT(sizeof...(otherDimensions) + 1 == NumIndices, YOU_MADE_A_PROGRAMMING_MISTAKE) @@ -427,7 +427,7 @@ class Tensor : public TensorBase{{firstDimension, otherDimensions...}}); + resize(array{firstDimension, otherDimensions...}); } #endif -- cgit v1.2.3