diff --git a/unsupported/Eigen/CXX11/src/Tensor/Tensor.h b/unsupported/Eigen/CXX11/src/Tensor/Tensor.h index 2b892571e..d59fd21dc 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/Tensor.h @@ -134,7 +134,7 @@ class Tensor : public TensorBase EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar& coeff(const CustomIndices & indices) const { - return coeff(internal::CustomIndices2Array(indices)); + return coeff(internal::customIndices2Array(indices)); } @@ -168,7 +168,7 @@ class Tensor : public TensorBase EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& coeffRef(const CustomIndices & indices) { - return coeffRef(internal::CustomIndices2Array(indices)); + return coeffRef(internal::customIndices2Array(indices)); } @@ -216,7 +216,7 @@ class Tensor : public TensorBase(indices)); + return coeff(internal::customIndices2Array(indices)); } // normal indices @@ -284,7 +284,7 @@ class Tensor : public TensorBase(indices)); + return coeffRef(internal::customIndices2Array(indices)); } EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar& operator()(Index index) @@ -359,7 +359,7 @@ class Tensor : public TensorBase::value) ) > - inline explicit Tensor(const CustomDimension & dimensions) : Tensor(internal::CustomIndices2Array(dimensions)) + inline explicit Tensor(const CustomDimension & dimensions) : Tensor(internal::customIndices2Array(dimensions)) {} template @@ -446,7 +446,7 @@ class Tensor : public TensorBase(dimensions)); + return coeffRef(internal::customIndices2Array(dimensions)); } diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h index 60a6c1469..01aedd3c9 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h @@ -93,15 +93,15 @@ namespace internal{ template EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE - array customIndex2Array(const IndexType & idx, numeric_list) { + array customIndices2Array(const IndexType & idx, numeric_list) { return { idx(Is)... }; } /** Make an array (for index/dimensions) out of a custom index */ template EIGEN_CONSTEXPR EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE - array customIndex2Array(const IndexType & idx) { - return customIndex2Array(idx, typename gen_numeric_list::type{}); + array customIndices2Array(const IndexType & idx) { + return customIndices2Array(idx, typename gen_numeric_list::type{}); }