You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @kc9jud , thank you for your interest in this repository.
It is because Discrete generators use some specialized routine for int32_t SIMD.
At the time of first implementation, only int32_t was considered, so additional implementations were required to make it work for other integral types.
I will add support for other integral types in future updates.
Is there a reason why
Discrete.h
usesstd::is_same
rather thanstd::is_integral
here?EigenRand/EigenRand/Dists/Discrete.h
Line 217 in f3190cd
If this is instead
std::is_integral<_Scalar>::value
, then the discrete generators can also be used forint64_t
,uint32_t
, etc.The text was updated successfully, but these errors were encountered: