public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32879]  New: Document algorithm used for random generator
@ 2007-07-24 15:09 burnus at gcc dot gnu dot org
  2007-07-24 16:30 ` [Bug fortran/32879] " jb at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-07-24 15:09 UTC (permalink / raw)
  To: gcc-bugs

gfortran has:
 irand() - g77
 rand() - g77
 random_number() - Fortran 90

The algorithm used is different.
Expected:
- State something about the used algorithm
- Point rand() users to random_number() as this algorithm is seemingly better.
  (or make at least clear(er) that the algorithms are different)

Cf. http://gcc.gnu.org/ml/fortran/2007-07/msg00454.html
> There are two random number generators in gfortran, one is a simple modulo 
> generator that is there for compatibility with g77, this is what you get when 
> you call RAND().
>
> The other is the RNG that implements the Fortran 90 RANDOM_NUMBER intrinsic. 
> [...] George Marsaglia's KISS (Keep It Simple Stupid)


-- 
           Summary: Document algorithm used for random generator
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: documentation
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32879


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-29 10:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-24 15:09 [Bug fortran/32879] New: Document algorithm used for random generator burnus at gcc dot gnu dot org
2007-07-24 16:30 ` [Bug fortran/32879] " jb at gcc dot gnu dot org
2007-07-24 16:44 ` burnus at gcc dot gnu dot org
2007-07-28  9:45 ` patchapp at dberlin dot org
2007-07-29 10:01 ` dfranke at gcc dot gnu dot org
2007-07-29 10:49 ` dfranke at gcc dot gnu dot org
2007-07-29 10:50 ` dfranke at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).