diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-04-19 11:53:58 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-04-19 11:53:58 -0700 |
commit | 50968a0a3ed2686b25f6df1687f4cf7fc6b66da1 (patch) | |
tree | 611cd5b2d512ad843777f324f38a03dad9793e34 /unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h | |
parent | 84543c8be2076b747bbc730a760e7693ab6caae4 (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.h | 4 |
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 |