diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-03-09 10:55:11 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-03-09 10:55:11 -0800 |
commit | 1d566417d29ff5baf8164826b389aa6dad71857a (patch) | |
tree | 4739dd5ad146a65212ab41d63073d685d722e10e /unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h | |
parent | b084133dbfa089b8a8b6998df2c118ce3c20a7d5 (diff) |
Enable the random number generators when compiling with visual studio
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 b24f06df8..8e45ae9e5 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h @@ -359,7 +359,7 @@ template <typename T> class UniformRandomGenerator { bool m_deterministic; }; -#if __cplusplus > 199711 +#if __cplusplus > 199711 || EIGEN_COMP_MSVC >= 1900 template <> class UniformRandomGenerator<float> { public: static const bool PacketAccess = true; @@ -565,7 +565,7 @@ struct functor_traits<UniformRandomGenerator<Scalar> > { -#if (!defined (EIGEN_USE_GPU) || !defined(__CUDACC__) || !defined(__CUDA_ARCH__)) && __cplusplus > 199711 +#if (!defined (EIGEN_USE_GPU) || !defined(__CUDACC__) || !defined(__CUDA_ARCH__)) && (__cplusplus > 199711 || EIGEN_COMP_MSVC >= 1900) // We're not compiling a cuda kernel template <typename T> class NormalRandomGenerator { public: |