[Gmp-commit] /var/hg/gmp: mpf_urandomb doc

mercurial at gmplib.org mercurial at gmplib.org
Sun May 1 12:05:09 CEST 2011


details:   /var/hg/gmp/rev/5b2f9440c608
changeset: 14150:5b2f9440c608
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Sun May 01 12:05:06 2011 +0200
description:
mpf_urandomb doc

diffstat:

 ChangeLog    |  3 +++
 doc/gmp.texi |  3 ++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 1c68ecf1885e -r 5b2f9440c608 ChangeLog
--- a/ChangeLog	Sun May 01 11:54:12 2011 +0200
+++ b/ChangeLog	Sun May 01 12:05:06 2011 +0200
@@ -11,6 +11,9 @@
 	* tests/cxx/t-ops2.cc: Add a couple tests.
 	* tests/cxx/t-rand.cc: Likewise.
 
+	* doc/gmp.texi (mpf_urandomb): Explicit the fact that it does not
+	change the precision.
+
 2011-04-28  Torbjorn Granlund  <tege at gmplib.org>
 
 	* configure.in (x86_64): Support bobcat specifically.
diff -r 1c68ecf1885e -r 5b2f9440c608 doc/gmp.texi
--- a/doc/gmp.texi	Sun May 01 11:54:12 2011 +0200
+++ b/doc/gmp.texi	Sun May 01 12:05:06 2011 +0200
@@ -5021,7 +5021,8 @@
 @cindex Random number functions
 @cindex Float random number functions
 Generate a uniformly distributed random float in @var{rop}, such that @math{0
- at le{} @var{rop} < 1}, with @var{nbits} significant bits in the mantissa.
+ at le{} @var{rop} < 1}, with @var{nbits} significant bits in the mantissa or
+less if the precision of @var{rop} is smaller.
 
 The variable @var{state} must be initialized by calling one of the
 @code{gmp_randinit} functions (@ref{Random State Initialization}) before


More information about the gmp-commit mailing list