2
0
mirror of https://github.com/boostorg/random.git synced 2026-01-25 18:32:26 +00:00
Commit Graph

115 Commits

Author SHA1 Message Date
Jens Maurer
33d3fd71dd move static assertions on std::numeric_limits<> from class to constructor
scope to suit MSVC


[SVN r19000]
2003-07-09 19:47:11 +00:00
Jens Maurer
5b26d1be08 cast 0 to UIntType before performing bit magic
[SVN r18989]
2003-07-09 12:56:40 +00:00
Jens Maurer
1e59f7a328 add missing nested template
[SVN r18982]
2003-07-09 00:01:00 +00:00
Jens Maurer
0efba326a7 merge with wg21_random_proposal branch
[SVN r18973]
2003-07-07 20:57:14 +00:00
Jens Maurer
5afe5eba35 merge with wg21_random_proposal branch
[SVN r18950]
2003-07-06 21:53:42 +00:00
Jens Maurer
772cee7448 work around SGI MIPSpro 7.3.1.x optimizer problem (Synge Todo)
[SVN r18232]
2003-04-11 08:39:43 +00:00
Jens Maurer
88bc44f28e avoid signed/unsigned warning
[SVN r18202]
2003-04-08 09:45:02 +00:00
Jens Maurer
ba41696f9e MSVC portability improvements (Kirill Lapshin)
[SVN r18162]
2003-04-02 23:22:00 +00:00
Jens Maurer
1d90a569ac make work with unsigned IntType (Mario Rueti, Matthias Troyer)
[SVN r18160]
2003-04-02 21:42:53 +00:00
Beman Dawes
59c1941a08 Borland fixes (Alisdair Meredith)
[SVN r17948]
2003-03-17 01:39:15 +00:00
Björn Karlsson
7c38b53874 Changed RealType& to RealType for mean and sigma
[SVN r17632]
2003-02-25 10:29:29 +00:00
Dave Abrahams
c102ef50df Added missing #include
[SVN r17101]
2003-01-31 05:01:16 +00:00
Dave Abrahams
7cf0c648ec Compiler workarounds
[SVN r16911]
2003-01-15 15:43:36 +00:00
Beman Dawes
8d724db34e add or update See www.boost.org comments
[SVN r16708]
2002-12-27 16:51:53 +00:00
Jens Maurer
07f02ef298 check for BOOST_NO_MEMBER_TEMPLATE_FRIENDS
[SVN r16682]
2002-12-22 22:03:11 +00:00
Jens Maurer
b9fb804fa4 fix various platform-specific compile problems
[SVN r16681]
2002-12-22 21:27:42 +00:00
Jens Maurer
597455959d make sure to set all mantissa bits of floating-point generators with the
seed(first,last) interface (Matthias Troyer)


[SVN r16123]
2002-11-05 20:29:51 +00:00
Jens Maurer
c6156071cc add operator<< and operator>> for save/restore of distributions
[SVN r16109]
2002-11-04 22:07:23 +00:00
Jens Maurer
c524749d74 add Adaptor template parameter, to convert output from underlying generator
to input of distribution


[SVN r16104]
2002-11-04 21:37:30 +00:00
Jens Maurer
69a4afbcab add reasonable defaults for distribution parameters
[SVN r16103]
2002-11-04 21:26:21 +00:00
Jens Maurer
ad762a9a93 for some user-provided floating-point type RealType, the preferred approach
for using small integers in computations is RealType(3)
(Michael Stevens)


[SVN r15953]
2002-10-17 18:35:12 +00:00
Jens Maurer
839f42d50f always explicitly convert literals to RealType or result_type
[SVN r15950]
2002-10-17 02:39:04 +00:00
Jens Maurer
d804565056 fix comments that talk about not being Assignable
[SVN r15949]
2002-10-17 01:52:39 +00:00
Jens Maurer
3614a680c3 make distributions assignable
[SVN r15946]
2002-10-16 20:37:43 +00:00
Jens Maurer
4360890da7 make distributions assignable
[SVN r15941]
2002-10-16 12:54:08 +00:00
Jens Maurer
59f60b8f45 avoid "divison by zero" compiler warnings
[SVN r15940]
2002-10-16 12:52:41 +00:00
Jens Maurer
29c5b0888c add inquiry functions and reset()
[SVN r15939]
2002-10-16 12:51:47 +00:00
Jens Maurer
fd10091f2e fix workaround for broken compilers
[SVN r15885]
2002-10-10 21:13:34 +00:00
Jens Maurer
eed9b9d314 fix typo in broken compiler workaround
[SVN r15884]
2002-10-10 21:11:03 +00:00
Jens Maurer
6bb81ab8a6 remove unused variable
[SVN r15883]
2002-10-10 21:10:21 +00:00
Jens Maurer
6b3bed4880 add seed() member function
[SVN r15882]
2002-10-10 21:09:58 +00:00
Jens Maurer
8044d14309 make portable, don't shift >= word size
[SVN r15812]
2002-10-08 23:19:12 +00:00
Jens Maurer
7d4f6ec1ab fix "left shift >= width of type" warnings; they point out real problems
avoid other warnings


[SVN r15800]
2002-10-07 23:42:31 +00:00
Jens Maurer
6db9c8d942 rework to support canonical storage on non-volatile media
make operator== work in all cases


[SVN r15755]
2002-10-06 23:21:44 +00:00
Jens Maurer
da8ce36d27 integrate simple compute() function in-class
[SVN r15753]
2002-10-06 22:25:38 +00:00
Jens Maurer
45615b25c4 allow it to work with floating-point engines
[SVN r15731]
2002-10-05 11:12:33 +00:00
Jens Maurer
04e2b70459 check BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
[SVN r15728]
2002-10-05 10:45:53 +00:00
Jens Maurer
450532143b avoid partial specialization, for the benefit of MSVC
[SVN r15727]
2002-10-05 10:44:33 +00:00
Jens Maurer
787b7ed54b work-around for gcc "divide by zero" warning
[SVN r15726]
2002-10-05 08:55:43 +00:00
Jens Maurer
947248d1cd remove superfluous "const"
move static checking of template parameters to class scope


[SVN r15725]
2002-10-05 08:47:10 +00:00
Jens Maurer
efee238052 focus on luxury levels for naming
[SVN r15691]
2002-10-03 22:06:48 +00:00
Jens Maurer
dc6ac0c9ab complete rework of implementation, now supports reliable operator==
and operator>> according to specs


[SVN r15690]
2002-10-03 22:04:56 +00:00
Jens Maurer
9355b8df7a add missing #include (thanks to Ralf W. Grosse-Kunstleve)
[SVN r15686]
2002-10-03 21:29:42 +00:00
Jens Maurer
c67ab711af avoid MSVC internal compiler error by disabling assertions
(thanks to Greg Hawkins)


[SVN r15685]
2002-10-03 21:28:54 +00:00
Jens Maurer
8b192b20bc add new engines and new distributions
[SVN r15662]
2002-10-03 00:07:13 +00:00
Jens Maurer
cc07606e48 precompute modulus
[SVN r15660]
2002-10-03 00:03:26 +00:00
Jens Maurer
6585deca96 add floating-point ranlux engines
[SVN r15659]
2002-10-03 00:02:02 +00:00
Jens Maurer
89b028375b for the floating-point engine, switch from "modulus" to word_size to
be able to handle 48 bits on all platforms (usually the mantissa of a
double)


[SVN r15658]
2002-10-02 23:59:18 +00:00
Jens Maurer
63825754be remove validation machinery so that discard_block works for integer
and floating-point base engine


[SVN r15657]
2002-10-02 23:57:27 +00:00
Jens Maurer
1a27ccda74 expand interface with RealType to store probability
[SVN r15640]
2002-10-01 23:02:15 +00:00