aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-19 11:53:58 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-19 11:53:58 -0700
commit50968a0a3ed2686b25f6df1687f4cf7fc6b66da1 (patch)
tree611cd5b2d512ad843777f324f38a03dad9793e34 /unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h
parent84543c8be2076b747bbc730a760e7693ab6caae4 (diff)
Use DenseIndex in the MeanReducer to avoid overflows when processing very large tensors.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h
index 44dc2d730..33cd00391 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h
@@ -158,8 +158,8 @@ template <typename T> struct MeanReducer
}
protected:
- int scalarCount_;
- int packetCount_;
+ DenseIndex scalarCount_;
+ DenseIndex packetCount_;
};
template <typename T> struct MaxReducer