From e1d28b7ea7ee2aad4603121d5e1bec0c4484c838 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 29 Jul 2015 15:01:21 -0700 Subject: Added a test for shuffling --- unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h b/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h index c45530098..15a22aa1b 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h @@ -67,7 +67,7 @@ class TensorShufflingOp : public TensorBase : m_xpr(expr), m_shuffle(shuffle) {} EIGEN_DEVICE_FUNC - const Shuffle& shuffle() const { return m_shuffle; } + const Shuffle& shufflePermutation() const { return m_shuffle; } EIGEN_DEVICE_FUNC const typename internal::remove_all::type& @@ -119,7 +119,7 @@ struct TensorEvaluator, Device> : m_impl(op.expression(), device) { const typename TensorEvaluator::Dimensions& input_dims = m_impl.dimensions(); - const Shuffle& shuffle = op.shuffle(); + const Shuffle& shuffle = op.shufflePermutation(); for (int i = 0; i < NumDims; ++i) { m_dimensions[i] = input_dims[shuffle[i]]; } -- cgit v1.2.3