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. --- unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h index 4d3e25d87..bd15295b8 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h @@ -89,29 +89,29 @@ struct preserve_inner_most_dims { template struct are_inner_most_dims{ static const bool tmp1 = indices_statically_known_to_increase(); - static const bool tmp2 = index_statically_eq()(0, 0); - static const bool tmp3 = index_statically_eq()(array_size::value-1, array_size::value-1); + static const bool tmp2 = index_statically_eq(0, 0); + static const bool tmp3 = index_statically_eq(array_size::value-1, array_size::value-1); static const bool value = tmp1 & tmp2 & tmp3; }; template struct are_inner_most_dims{ static const bool tmp1 = indices_statically_known_to_increase(); - static const bool tmp2 = index_statically_eq()(0, NumTensorDims - array_size::value); - static const bool tmp3 = index_statically_eq()(array_size::value - 1, NumTensorDims - 1); + static const bool tmp2 = index_statically_eq(0, NumTensorDims - array_size::value); + static const bool tmp3 = index_statically_eq(array_size::value - 1, NumTensorDims - 1); static const bool value = tmp1 & tmp2 & tmp3; }; template struct preserve_inner_most_dims{ static const bool tmp1 = indices_statically_known_to_increase(); - static const bool tmp2 = index_statically_gt()(0, 0); + static const bool tmp2 = index_statically_gt(0, 0); static const bool value = tmp1 & tmp2; }; template struct preserve_inner_most_dims{ static const bool tmp1 = indices_statically_known_to_increase(); - static const bool tmp2 = index_statically_lt()(array_size::value - 1, NumTensorDims - 1); + static const bool tmp2 = index_statically_lt(array_size::value - 1, NumTensorDims - 1); static const bool value = tmp1 & tmp2; }; #endif -- cgit v1.2.3