octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #36293] rand and randn do not implement the op


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #36293] rand and randn do not implement the option 'double'
Date: Wed, 25 Apr 2012 12:56:07 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0

Follow-up Comment #1, bug #36293 (project octave):

I should add that Octave implements the same
Marsaglia algorithm as Matlab and providing
the 'double' option should not be too difficult.
But, of course, random number generators need
careful coding.  The Octave rand.cc contains the
code.  The original algorithm was in Fortran and
it may be that the Matlab version is still
Fortran.  In any case, the implementation of the 
'double' option can be done without changing the
behavior of the default 'single' case.

I will look at this more if I can, but if
anyone is familiar with the code they should
just go ahead...


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36293>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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