WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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
We had two sets of constructors:
1) user-facing ones, which mimic `show`
(e.g. `MersenneTwister(seed)`, or `MersenneTwister(1, (0, 1002, 0,
1))`),
2) internal ones:
- `MersenneTwister(seed, state, vals, ...)`
- `MersenneTwister(seed, state)`
Internal ones were not practical to use, so they are replaced by a
single `_MersenneTwister(undef)` constructor which prepares an
uninitialized instance, which can then be initialized by `seed!`,
`copy!`, etc.
This commit also makes `const` some internal fields, and replaces
`Vector` with `Memory` for one of them.
0 commit comments