From ccf290a65cda00bfe12bbd5f4647aca5b371b6fb Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 25 Mar 2015 12:37:38 -0700 Subject: Cleaned up the TensorDevice code a little bit. --- unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h | 25 ++++++++--------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h index 7a67c56b3..b6ea655f3 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h @@ -32,8 +32,7 @@ template class TensorDevice { EIGEN_STRONG_INLINE TensorDevice& operator=(const OtherDerived& other) { typedef TensorAssignOp Assign; Assign assign(m_expression, other); - static const bool Vectorize = TensorEvaluator::PacketAccess; - internal::TensorExecutor::run(assign, m_device); + internal::TensorExecutor::run(assign, m_device); return *this; } @@ -44,8 +43,7 @@ template class TensorDevice { Sum sum(m_expression, other); typedef TensorAssignOp Assign; Assign assign(m_expression, sum); - static const bool Vectorize = TensorEvaluator::PacketAccess; - internal::TensorExecutor::run(assign, m_device); + internal::TensorExecutor::run(assign, m_device); return *this; } @@ -56,8 +54,7 @@ template class TensorDevice { Difference difference(m_expression, other); typedef TensorAssignOp Assign; Assign assign(m_expression, difference); - static const bool Vectorize = TensorEvaluator::PacketAccess; - internal::TensorExecutor::run(assign, m_device); + internal::TensorExecutor::run(assign, m_device); return *this; } @@ -76,8 +73,7 @@ template class TensorDevice Assign; Assign assign(m_expression, other); - static const bool Vectorize = TensorEvaluator::PacketAccess; - internal::TensorExecutor::run(assign, m_device); + internal::TensorExecutor::run(assign, m_device); return *this; } @@ -88,8 +84,7 @@ template class TensorDevice Assign; Assign assign(m_expression, sum); - static const bool Vectorize = TensorEvaluator::PacketAccess; - internal::TensorExecutor::run(assign, m_device); + internal::TensorExecutor::run(assign, m_device); return *this; } @@ -100,8 +95,7 @@ template class TensorDevice Assign; Assign assign(m_expression, difference); - static const bool Vectorize = TensorEvaluator::PacketAccess; - internal::TensorExecutor::run(assign, m_device); + internal::TensorExecutor::run(assign, m_device); return *this; } @@ -122,7 +116,7 @@ template class TensorDevice EIGEN_STRONG_INLINE TensorDevice& operator=(const OtherDerived& other) { typedef TensorAssignOp Assign; Assign assign(m_expression, other); - internal::TensorExecutor::run(assign, m_device); + internal::TensorExecutor::run(assign, m_device); return *this; } @@ -133,7 +127,7 @@ template class TensorDevice Sum sum(m_expression, other); typedef TensorAssignOp Assign; Assign assign(m_expression, sum); - internal::TensorExecutor::run(assign, m_device); + internal::TensorExecutor::run(assign, m_device); return *this; } @@ -144,8 +138,7 @@ template class TensorDevice Difference difference(m_expression, other); typedef TensorAssignOp Assign; Assign assign(m_expression, difference); - static const bool Vectorize = TensorEvaluator::PacketAccess; - internal::TensorExecutor::run(assign, m_device); + internal::TensorExecutor::run(assign, m_device); return *this; } -- cgit v1.2.3