From 8037826367a7becab046df2a8be08a28806a625f Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 12 Nov 2015 17:19:45 -0800 Subject: Simplified more of the IndexList code. --- .../Eigen/CXX11/src/Tensor/TensorDimensionList.h | 64 +++++++++++----------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h index da7782188..206808245 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h @@ -85,53 +85,53 @@ struct indices_statically_known_to_increase_impl -struct index_statically_eq > { - constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { +struct index_statically_eq_impl > { + static constexpr bool run(const DenseIndex i, const DenseIndex value) { return i == value; } }; template -struct index_statically_eq > { - constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { +struct index_statically_eq_impl > { + static constexpr bool run(const DenseIndex i, const DenseIndex value) { return i == value; } }; template -struct index_statically_ne > { - constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { +struct index_statically_ne_impl > { + static constexpr bool run(const DenseIndex i, const DenseIndex value) { return i != value; } }; template -struct index_statically_ne > { - constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { +struct index_statically_ne_impl > { + static constexpr bool run(const DenseIndex i, const DenseIndex value) { return i != value; } }; template -struct index_statically_gt > { - constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { +struct index_statically_gt_impl > { + static constexpr bool run(const DenseIndex i, const DenseIndex value) { return i > value; } }; template -struct index_statically_gt > { - constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { +struct index_statically_gt_impl > { + static constexpr bool run(const DenseIndex i, const DenseIndex value) { return i > value; } }; template -struct index_statically_lt > { - constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { +struct index_statically_lt_impl > { + static constexpr bool run(const DenseIndex i, const DenseIndex value) { return i < value; } }; template -struct index_statically_lt > { - constexpr bool operator() (const DenseIndex i, const DenseIndex value) const { +struct index_statically_lt_impl > { + static constexpr bool run(const DenseIndex i, const DenseIndex value) { return i < value; } }; @@ -177,53 +177,53 @@ struct indices_statically_known_to_increase_impl -struct index_statically_eq > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { +struct index_statically_eq_impl > { + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE bool run(const DenseIndex, const DenseIndex) const { return false; } }; template -struct index_statically_eq > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { +struct index_statically_eq_impl > { + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE bool run(const DenseIndex, const DenseIndex) const { return false; } }; template -struct index_statically_ne > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { +struct index_statically_ne_impl > { + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE bool run() (const DenseIndex, const DenseIndex) const { return false; } }; template -struct index_statically_ne > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { +struct index_statically_ne_impl > { + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE bool run(const DenseIndex, const DenseIndex) const { return false; } }; template -struct index_statically_gt > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { +struct index_statically_gt_impl > { + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE bool run() (const DenseIndex, const DenseIndex) const { return false; } }; template -struct index_statically_gt > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { +struct index_statically_gt_impl > { + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE bool run(const DenseIndex, const DenseIndex) const { return false; } }; template -struct index_statically_lt > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { +struct index_statically_lt_impl > { + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE bool run() (const DenseIndex, const DenseIndex) const { return false; } }; template -struct index_statically_lt > { - EIGEN_ALWAYS_INLINE bool operator() (const DenseIndex, const DenseIndex) const { +struct index_statically_lt_impl > { + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE bool run(const DenseIndex, const DenseIndex) const { return false; } }; -- cgit v1.2.3