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
//' @references \url{http://arrayfire.org/docs/group__device__func__info.htm#ga1360e706b046b1c5b299bd6e689a0276} and \url{http://arrayfire.org/docs/group__device__func__info__string.htm#ga73ee21947f018445ea720036c1edfb69}
//' Set the seed for random number generation in ArrayFire.
//' @details Sets the seed for the current default random engine in ArrayFire. Note that a (64bit) double is used as input, since R does not support 64bit integers.
//' @param seed a (64bit) double whose bit representation is reinterpreted as a 64bit integer
static_assert(sizeof seed == sizeof _seed, "Size does not match!");
std::memcpy(&_seed, &seed, sizeof seed);
af::setSeed( _seed ) ;
}
//' Get the seed for random number generation in ArrayFire.
//' @details Gets the seed for the current default random engine in ArrayFire. Note that a (64bit) double is used as output, since R does not support 64bit integers.
//' @return a (64bit) double whose bit representation is reinterpreted from the 64bit integer seed