mirror of git://gcc.gnu.org/git/gcc.git
re PR fortran/67039 (Documentation of pseudorandom number intrinsics is incorrect)
2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr> PR fortran/67039 * intrinsic.texi: Correct the documentation of pseudorandom number intrinsics. From-SVN: r234946
This commit is contained in:
parent
463d91c64d
commit
5267cfcc82
|
|
@ -1,3 +1,9 @@
|
||||||
|
2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
|
||||||
|
|
||||||
|
PR fortran/67039
|
||||||
|
* intrinsic.texi: Correct the documentation of pseudorandom
|
||||||
|
number intrinsics.
|
||||||
|
|
||||||
2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
|
2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
|
||||||
|
|
||||||
PR fortran/58000
|
PR fortran/58000
|
||||||
|
|
|
||||||
|
|
@ -12628,10 +12628,12 @@ Does not return anything.
|
||||||
See @code{RAND} and @code{IRAND} for examples.
|
See @code{RAND} and @code{IRAND} for examples.
|
||||||
|
|
||||||
@item @emph{Notes}:
|
@item @emph{Notes}:
|
||||||
The Fortran 2003 standard specifies the intrinsic @code{RANDOM_SEED} to
|
The Fortran standard specifies the intrinsic subroutines
|
||||||
initialize the pseudo-random numbers generator and @code{RANDOM_NUMBER}
|
@code{RANDOM_SEED} to initialize the pseudo-random number
|
||||||
to generate pseudo-random numbers. Please note that in
|
generator and @code{RANDOM_NUMBER} to generate pseudo-random numbers.
|
||||||
GNU Fortran, these two sets of intrinsics (@code{RAND},
|
These subroutines should be used in new codes.
|
||||||
|
|
||||||
|
Please note that in GNU Fortran, these two sets of intrinsics (@code{RAND},
|
||||||
@code{IRAND} and @code{SRAND} on the one hand, @code{RANDOM_NUMBER} and
|
@code{IRAND} and @code{SRAND} on the one hand, @code{RANDOM_NUMBER} and
|
||||||
@code{RANDOM_SEED} on the other hand) access two independent
|
@code{RANDOM_SEED} on the other hand) access two independent
|
||||||
pseudo-random number generators.
|
pseudo-random number generators.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue