Re: [rng] Split and Jump functions

2019-06-10 Thread Gilles Sadowski
Hello. LGTM. Thanks, Gilles P.S. Thinking of releasing 1.3? Le lun. 10 juin 2019 à 14:55, Alex Herbert a écrit : > > I've submitted a PR with the functionality discussed in this thread for > JumpableUniformRandomProvider [1]. > > Some notes: > > - The jump must return a copy. > > This

Re: [rng] Split and Jump functions

2019-06-10 Thread Alex Herbert
I've submitted a PR with the functionality discussed in this thread for JumpableUniformRandomProvider [1]. Some notes: - The jump must return a copy. This requires a bit of code all the way up to the base implementations of IntProvider and LongProvider to copy the current state. I've done

Re: [rng] Split and Jump functions

2019-05-03 Thread Alex Herbert
On 03/05/2019 13:04, Gilles Sadowski wrote: Hello. Le jeu. 2 mai 2019 à 23:49, Alex Herbert a écrit : On 1 May 2019, at 23:15, Gilles Sadowski wrote: Hi. [...] So do we do: UniformRandomProvider restrict(JumpableUniformRandomProvider); JumpableUniformRandomProvider

Re: [rng] Split and Jump functions

2019-05-03 Thread Gilles Sadowski
Hello. Le jeu. 2 mai 2019 à 23:49, Alex Herbert a écrit : > > > > > On 1 May 2019, at 23:15, Gilles Sadowski wrote: > > > > Hi. > > > >>> [...] > >> > >> So do we do: > >> > >> UniformRandomProvider restrict(JumpableUniformRandomProvider); > >> JumpableUniformRandomProvider

Re: [rng] Split and Jump functions

2019-05-02 Thread Alex Herbert
> On 1 May 2019, at 23:15, Gilles Sadowski wrote: > > Hi. > >>> [...] >> >> So do we do: >> >> UniformRandomProvider restrict(JumpableUniformRandomProvider); >> JumpableUniformRandomProvider restrict(LongJumpableUniformRandomProvider); >> UniformRandomProvider

Re: [rng] Split and Jump functions

2019-05-01 Thread Gilles Sadowski
Hi. > > [...] > > So do we do: > > UniformRandomProvider restrict(JumpableUniformRandomProvider); > JumpableUniformRandomProvider restrict(LongJumpableUniformRandomProvider); > UniformRandomProvider restrict(RestorableUniformRandomProvider); > > Or: > > UniformRandomProvider

Re: [rng] Split and Jump functions

2019-05-01 Thread Alex Herbert
> On 1 May 2019, at 16:05, Gilles Sadowski wrote: > > Hi. > > Le mar. 30 avr. 2019 à 17:08, Alex Herbert > a écrit : >> >> On 29/04/2019 22:14, Gilles Sadowski wrote: >>> Hello. >>> >>> Le lun. 29 avr. 2019 à 19:09, Alex Herbert a >>> écrit : On

Re: [rng] Split and Jump functions

2019-05-01 Thread Gilles Sadowski
Hi. Le mar. 30 avr. 2019 à 17:08, Alex Herbert a écrit : > > On 29/04/2019 22:14, Gilles Sadowski wrote: > > Hello. > > > > Le lun. 29 avr. 2019 à 19:09, Alex Herbert a > > écrit : > >> On 28/04/2019 19:11, Gilles Sadowski wrote: > >>> Le dim. 28 avr. 2019 à 17:02, Alex Herbert a > >>> écrit

Re: [rng] Split and Jump functions

2019-04-30 Thread Alex Herbert
On 29/04/2019 22:14, Gilles Sadowski wrote: Hello. Le lun. 29 avr. 2019 à 19:09, Alex Herbert a écrit : On 28/04/2019 19:11, Gilles Sadowski wrote: Le dim. 28 avr. 2019 à 17:02, Alex Herbert a écrit : On 28 Apr 2019, at 00:59, Bernd Eckenfels wrote: Hello, Just a question, I am

Re: [rng] Split and Jump functions

2019-04-29 Thread Gilles Sadowski
Hello. Le lun. 29 avr. 2019 à 19:09, Alex Herbert a écrit : > > On 28/04/2019 19:11, Gilles Sadowski wrote: > > Le dim. 28 avr. 2019 à 17:02, Alex Herbert a > > écrit : > >> > >> > >>> On 28 Apr 2019, at 00:59, Bernd Eckenfels wrote: > >>> > >>> Hello, > >>> > >>> Just a question, I am

Re: [rng] Split and Jump functions

2019-04-29 Thread Alex Herbert
On 28/04/2019 19:11, Gilles Sadowski wrote: Le dim. 28 avr. 2019 à 17:02, Alex Herbert a écrit : On 28 Apr 2019, at 00:59, Bernd Eckenfels wrote: Hello, Just a question, I am unclear on the terminology, is „jump“ (did I miss the discussion leading toot?) something invented here? It

Re: [rng] Split and Jump functions

2019-04-28 Thread Gilles Sadowski
Le dim. 28 avr. 2019 à 17:02, Alex Herbert a écrit : > > > > > On 28 Apr 2019, at 00:59, Bernd Eckenfels wrote: > > > > Hello, > > > > Just a question, I am unclear on the terminology, is „jump“ (did I miss the > > discussion leading toot?) something invented here? It sounds to me like > >

Re: [rng] Split and Jump functions

2019-04-28 Thread Gilles Sadowski
Hi. > > Just a question, I am unclear on the terminology, is „jump“ (did I miss the > discussion leading toot?) something invented here? Not invented here: It's a functionality that exist for some RNG algorithms. > It sounds to me like this is a generator where the state can be cloned and it

Re: [rng] Split and Jump functions

2019-04-28 Thread Alex Herbert
> > -- > http://bernd.eckenfels.net > > > Von: Gilles Sadowski > Gesendet: Sonntag, April 28, 2019 12:34 AM > An: Commons Developers List > Betreff: Re: [rng] Split and Jump functions > > Hello. > >> >> >

Re: [rng] Split and Jump functions

2019-04-27 Thread Bernd Eckenfels
anyway. Gruss Bernd -- http://bernd.eckenfels.net Von: Gilles Sadowski Gesendet: Sonntag, April 28, 2019 12:34 AM An: Commons Developers List Betreff: Re: [rng] Split and Jump functions Hello. > > > > On 27 Apr 2019, at 14:49, Gilles Sadowski wrote

Re: [rng] Split and Jump functions

2019-04-27 Thread Gilles Sadowski
Hello. > > > > On 27 Apr 2019, at 14:49, Gilles Sadowski wrote: > > > > Hi. > > > > Le sam. 27 avr. 2019 à 15:05, Alex Herbert > > a écrit : > >> > >> I have created RNG-97 and RNG-98 for Jump and LongJump. > >> > >> Please take a look and comment. > >> > >> The

Re: [rng] Split and Jump functions

2019-04-27 Thread Alex Herbert
> On 27 Apr 2019, at 14:49, Gilles Sadowski wrote: > > Hi. > > Le sam. 27 avr. 2019 à 15:05, Alex Herbert > a écrit : >> >> I have created RNG-97 and RNG-98 for Jump and LongJump. >> >> Please take a look and comment. >> >> The documentation highlights the

Re: [rng] Split and Jump functions

2019-04-27 Thread Gilles Sadowski
Hi. Le sam. 27 avr. 2019 à 15:05, Alex Herbert a écrit : > > I have created RNG-97 and RNG-98 for Jump and LongJump. > > Please take a look and comment. > > The documentation highlights the implementation detail that a jump or long > jump creates a copy that is far ahead. The original generator

Re: [rng] Split and Jump functions

2019-04-27 Thread Alex Herbert
I have created RNG-97 and RNG-98 for Jump and LongJump. Please take a look and comment. The documentation highlights the implementation detail that a jump or long jump creates a copy that is far ahead. The original generator is not effected. The use case is thus: rng1 = …; rng2 = rng1.jump();

Re: [rng] Split and Jump functions

2019-04-19 Thread Alex Herbert
> On 19 Apr 2019, at 15:30, Gilles Sadowski wrote: > > Le jeu. 18 avr. 2019 à 21:53, Alex Herbert > a écrit : >> >> >> >>> On 18 Apr 2019, at 14:12, Gilles Sadowski wrote: >>> >>> Hello Alex. >>> >> [...] OK so this results in:

Re: [rng] Split and Jump functions

2019-04-19 Thread Gilles Sadowski
Le jeu. 18 avr. 2019 à 21:53, Alex Herbert a écrit : > > > > > On 18 Apr 2019, at 14:12, Gilles Sadowski wrote: > > > > Hello Alex. > > > [...] > >> > >> OK so this results in: > >> > >> /** > >> * Some summary. > >> */ > >> public interface JumpableUniformRandomProvider extends > >>

Re: [rng] Split and Jump functions

2019-04-18 Thread Alex Herbert
> On 18 Apr 2019, at 14:12, Gilles Sadowski wrote: > > Hello Alex. > [...] >> >> OK so this results in: >> >> /** >> * Some summary. >> */ >> public interface JumpableUniformRandomProvider extends >> UniformRandomProvider { >> /** >> * Creates a copy of the

Re: [rng] Split and Jump functions

2019-04-18 Thread Gilles Sadowski
Hello Alex. >>> [...] > > OK so this results in: > > /** > * Some summary. > */ > public interface JumpableUniformRandomProvider extends > UniformRandomProvider { > /** > * Creates a copy of the UniformRandomProvider and advances the > state of the copy. > * The state of the

Re: [rng] Split and Jump functions

2019-04-17 Thread Alex Herbert
On 17/04/2019 16:43, Gilles Sadowski wrote: Hello. Le lun. 15 avr. 2019 à 01:03, Alex Herbert a écrit : On 14 Apr 2019, at 01:31, Gilles Sadowski wrote: Hello. On 11/04/2019 13:22, Gilles Sadowski wrote: [...] Not adding a dedicated method would mean everyone has to do this:

Re: [rng] Split and Jump functions

2019-04-17 Thread Gilles Sadowski
Hello. Le lun. 15 avr. 2019 à 01:03, Alex Herbert a écrit : > > > > > On 14 Apr 2019, at 01:31, Gilles Sadowski wrote: > > > > Hello. > > > >> On 11/04/2019 13:22, Gilles Sadowski wrote: > > [...] > Not adding a dedicated method would mean everyone has to do this: > >

Re: [rng] Split and Jump functions

2019-04-14 Thread Alex Herbert
> On 14 Apr 2019, at 01:31, Gilles Sadowski wrote: > > Hello. > >> On 11/04/2019 13:22, Gilles Sadowski wrote: > [...] Not adding a dedicated method would mean everyone has to do this: JumpableUniformRandomProvider rng = (JumpableUniformRandomProvider)

Re: [rng] Split and Jump functions

2019-04-13 Thread Gilles Sadowski
Hello. > On 11/04/2019 13:22, Gilles Sadowski wrote: > >>> [...] > >> Not adding a dedicated method would mean everyone has to do this: > >> > >> JumpableUniformRandomProvider rng = (JumpableUniformRandomProvider) > >> RandomSource.create(…) > >> > >> But adding a mirror methods: > >> > >>

Re: [rng] Split and Jump functions

2019-04-11 Thread Alex Herbert
On 11/04/2019 13:22, Gilles Sadowski wrote: [...] Not adding a dedicated method would mean everyone has to do this: JumpableUniformRandomProvider rng = (JumpableUniformRandomProvider) RandomSource.create(…) But adding a mirror methods: JumpableUniformRandomProvider

Re: [rng] Split and Jump functions

2019-04-11 Thread Gilles Sadowski
> > [...] > > Not adding a dedicated method would mean everyone has to do this: > > JumpableUniformRandomProvider rng = (JumpableUniformRandomProvider) > RandomSource.create(…) > > But adding a mirror methods: > > JumpableUniformRandomProvider RandomSource::createJumpable(…) >

Re: [rng] Split and Jump functions

2019-04-10 Thread Alex Herbert
> On 10 Apr 2019, at 18:52, Gilles Sadowski wrote: > > Hi. > >> >> On 10/04/2019 18:58, Gilles Sadowski wrote: >>> Hi. >>> [... long quote skipped where I think we largely agree on the conclusions ...] So do we have a working idea to: - Add interface

Re: Re: [rng] Split and Jump functions

2019-04-10 Thread Gilles Sadowski
Hi. > > On 10/04/2019 18:58, Gilles Sadowski wrote: > > Hi. > > > >> [... long quote skipped where I think we largely agree on the > >> conclusions ...] > >> So do we have a working idea to: > >> > >> - Add interface 'JumpableUniformRandomProvider' > > Do we need to add "createJumpable" factory

Fwd: Re: [rng] Split and Jump functions

2019-04-10 Thread Alex Herbert
Resending to list. Forwarded Message Subject:Re: [rng] Split and Jump functions Date: Wed, 10 Apr 2019 18:00:54 +0100 From: Alex Herbert To: Gilles Sadowski On 10/04/2019 18:58, Gilles Sadowski wrote: Hi. [... long quote skipped where I think we largely

Re: [rng] Split and Jump functions

2019-04-10 Thread Gilles Sadowski
Hi. > [... long quote skipped where I think we largely agree on the conclusions ...] > So do we have a working idea to: > > - Add interface 'JumpableUniformRandomProvider' Do we need to add "createJumpable" factory methods in "RandomSource" methods or is there a way to avoid the duplication?

Re: [rng] Split and Jump functions

2019-04-09 Thread Alex Herbert
On 09/04/2019 17:36, Gilles Sadowski wrote: Hello. Le mar. 9 avr. 2019 à 16:42, Alex Herbert a écrit : Hi Gilles, Lots of sensible discussion here. I'll just put all replies at the end. On 09/04/2019 13:28, Gilles Sadowski wrote: Hello. Hi Gilles, You ask some good questions which I

Re: [rng] Split and Jump functions

2019-04-09 Thread Gilles Sadowski
Hello. Le mar. 9 avr. 2019 à 16:42, Alex Herbert a écrit : > > Hi Gilles, > > Lots of sensible discussion here. I'll just put all replies at the end. > > On 09/04/2019 13:28, Gilles Sadowski wrote: > > Hello. > > > >> Hi Gilles, > >> > >> You ask some good questions which I may have been vague

Re: [rng] Split and Jump functions

2019-04-09 Thread Alex Herbert
Hi Gilles, Lots of sensible discussion here. I'll just put all replies at the end. On 09/04/2019 13:28, Gilles Sadowski wrote: Hello. Hi Gilles, You ask some good questions which I may have been vague about due to familiarity with the possibilities. I hope to clarify a bit below. On

Re: [rng] Split and Jump functions

2019-04-09 Thread Gilles Sadowski
Hello. > > Hi Gilles, > > You ask some good questions which I may have been vague about due to > familiarity with the possibilities. I hope to clarify a bit below. > > On 08/04/2019 16:05, Gilles Sadowski wrote: > > Hi Alex. > > > > Le lun. 8 avr. 2019 à 14:36, Alex Herbert a > > écrit : > >>

Re: [rng] Split and Jump functions

2019-04-08 Thread Alex Herbert
Hi Gilles, You ask some good questions which I may have been vague about due to familiarity with the possibilities. I hope to clarify a bit below. On 08/04/2019 16:05, Gilles Sadowski wrote: Hi Alex. Le lun. 8 avr. 2019 à 14:36, Alex Herbert a écrit : This is a starter for a discussion on

Re: [rng] Split and Jump functions

2019-04-08 Thread Gilles Sadowski
Hi Alex. Le lun. 8 avr. 2019 à 14:36, Alex Herbert a écrit : > > This is a starter for a discussion on the split and jump functionality > for a random generator. > > Split: > > To create a new instance of the generator that is deterministically > based on the state of the current instance but