octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Low hanging fruit - Accelerated random distribution functions


From: John W. Eaton
Subject: Re: Low hanging fruit - Accelerated random distribution functions
Date: Thu, 22 Feb 2007 19:56:38 -0500

On 23-Feb-2007, David Bateman wrote:

| rande, randg and randp do call the old generators with "seed". However,
| that is not enough as the these patch (I give the credit to Paul for the
| hint in the randg help text) remove the inverse mapping that was
| previously used for a different expression of the random deviate.. I
| don't think its possible to have both the speedup and the old sequence..

OK, so we would have to write something like

  if (using_old_rand_generator ())
    original
  else
    new code
  endif

(assuming we had the function using_old_rand_generator).

I don't know that it is worth it, so I'd say just check in the change
and we'll see if anyone notices or complains.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]