aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-03-17 21:47:18 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-03-17 21:47:18 -0700
commit70eb70f5f84a353c89be84e752aa32d66ba273b3 (patch)
tree80b92c759f3033c97e9af5af574ba5d36573998d /unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h
parent7b98de1f15dd9f686e67b88c78708d4adc15adf5 (diff)
Avoid mutable class members when possible
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h
index 26e5dafce..c71a30d21 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h
@@ -397,7 +397,7 @@ template <> class UniformRandomGenerator<float> {
// Make sure m_deterministic comes first to match the layout of the cpu
// version of the code.
bool m_deterministic;
- mutable std::mt19937* m_generator;
+ std::mt19937* m_generator;
mutable std::uniform_real_distribution<float> m_distribution;
};
@@ -438,7 +438,7 @@ template <> class UniformRandomGenerator<double> {
// Make sure m_deterministic comes first to match the layout of the cpu
// version of the code.
bool m_deterministic;
- mutable std::mt19937* m_generator;
+ std::mt19937* m_generator;
mutable std::uniform_real_distribution<double> m_distribution;
};
#endif
@@ -611,7 +611,7 @@ template <typename T> class NormalRandomGenerator {
bool m_deterministic;
mutable std::normal_distribution<T> m_distribution;
- mutable std::mt19937* m_generator;
+ std::mt19937* m_generator;
};
#elif defined (EIGEN_USE_GPU) && defined(__CUDACC__) && defined(__CUDA_ARCH__)