Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly include required std headers for xoshiro. #29

Merged
merged 1 commit into from
May 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions inst/include/dqrng_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,27 +151,27 @@ class random_64bit_wrapper : public random_64bit_generator {
};

template<>
void random_64bit_wrapper<::dqrng::xoroshiro128plus>::seed(result_type seed, result_type stream) {
inline void random_64bit_wrapper<::dqrng::xoroshiro128plus>::seed(result_type seed, result_type stream) {
gen.seed(seed);
gen.jump(stream);
cache = false;
}

template<>
void random_64bit_wrapper<::dqrng::xoshiro256plus>::seed(result_type seed, result_type stream) {
inline void random_64bit_wrapper<::dqrng::xoshiro256plus>::seed(result_type seed, result_type stream) {
gen.seed(seed);
gen.long_jump(stream);
cache = false;
}

template<>
void random_64bit_wrapper<pcg64>::seed(result_type seed, result_type stream) {
inline void random_64bit_wrapper<pcg64>::seed(result_type seed, result_type stream) {
gen.seed(seed, stream);
cache = false;
}

template<>
void random_64bit_wrapper<sitmo::threefry_20_64>::seed(result_type seed, result_type stream) {
inline void random_64bit_wrapper<sitmo::threefry_20_64>::seed(result_type seed, result_type stream) {
gen.seed(seed);
gen.set_counter(0, 0, 0, stream);
cache = false;
Expand Down
3 changes: 3 additions & 0 deletions inst/include/xoshiro.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

#include <array>
#include <cstdint>
#include <functional>
#include <algorithm>
#include <type_traits>

namespace dqrng {
template<size_t N, int_fast8_t A, int_fast8_t B, int_fast8_t C>
Expand Down