mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-02 18:20:38 +08:00
Enable the random number generators when compiling with visual studio
This commit is contained in:
parent
b084133dbf
commit
1d566417d2
@ -359,7 +359,7 @@ template <typename T> class UniformRandomGenerator {
|
|||||||
bool m_deterministic;
|
bool m_deterministic;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if __cplusplus > 199711
|
#if __cplusplus > 199711 || EIGEN_COMP_MSVC >= 1900
|
||||||
template <> class UniformRandomGenerator<float> {
|
template <> class UniformRandomGenerator<float> {
|
||||||
public:
|
public:
|
||||||
static const bool PacketAccess = true;
|
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
|
// We're not compiling a cuda kernel
|
||||||
template <typename T> class NormalRandomGenerator {
|
template <typename T> class NormalRandomGenerator {
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user