Jens Maurer
015da96141
add missing set(min, max) to uniform_smallint_float constructor (Topher Cooper)
...
[SVN r22851]
2004-05-17 21:18:40 +00:00
Eric Niebler
f63ff478d2
fix min/max problems
...
[SVN r22408]
2004-02-28 21:21:30 +00:00
Eric Niebler
f6d8b32527
fix min/max problems
...
[SVN r22407]
2004-02-28 21:14:04 +00:00
Eric Niebler
5e99463ce1
remove minmax hack from win32.hpp and fix all places that could be affected by the minmax macros
...
[SVN r22394]
2004-02-26 18:27:02 +00:00
Jens Maurer
e0a338c1d5
add missing #include's (Geoffrey Romer, SourceForge bug 882340)
...
[SVN r21928]
2004-01-25 21:22:48 +00:00
Jens Maurer
7a1327749d
fix type of _factor (Mario Rütti)
...
[SVN r21776]
2004-01-15 19:50:29 +00:00
Jens Maurer
e95f6980ec
fix double-increment bug
...
[SVN r21428]
2003-12-30 23:14:11 +00:00
Jens Maurer
cdae4805e6
fix off-by-one bug
...
[SVN r21422]
2003-12-29 22:50:02 +00:00
John Maddock
a19a8feccd
Added workaround for old style iostreams.
...
[SVN r21380]
2003-12-23 11:42:42 +00:00
Jens Maurer
b4aeb8c711
portability fix for Borland 5.6 (Hugo Duncan)
...
[SVN r20571]
2003-10-31 02:45:36 +00:00
Jens Maurer
08ea2c82c7
remove superfluous ; (Michael Stevens)
...
[SVN r20513]
2003-10-28 01:32:49 +00:00
Jens Maurer
5919a68a27
add definitions for in-class static constants, detected by IBM compiler
...
(Matthias Troyer)
[SVN r19466]
2003-08-05 19:32:30 +00:00
Dave Abrahams
06f83a9575
Improved support for BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
...
[SVN r19383]
2003-07-31 01:11:36 +00:00
Dave Abrahams
142bd6210a
operators.hpp, operators_test.cpp - workaround for compilers not
...
supporting the PP lib, many workarounds for another problem which
may be our bug.
linear_congruential.hpp - Borland workaround
[SVN r19350]
2003-07-30 01:11:14 +00:00
Jens Maurer
4ef5ff4519
work around MSVC and Borland problem: they can't access template
...
parameters of the surrounding class from friend function template
inline definitions
[SVN r19223]
2003-07-19 21:28:55 +00:00
Jens Maurer
d7884c2c9d
work around Metrowerks that tries to instantiate an unused static member
...
function and explodes on the static assert therein
[SVN r19199]
2003-07-18 21:06:30 +00:00
Jens Maurer
2890227e23
work around MSVC and Borland problem: they can't access template
...
parameters of the surrounding class from friend function template
inline definitions
[SVN r19198]
2003-07-18 20:49:56 +00:00
Jens Maurer
f9739bf47c
make sure compiler workarounds are mutually exclusive
...
[SVN r19156]
2003-07-16 18:00:35 +00:00
Jens Maurer
ba4fd438a2
allow min == max and assert on min > max
...
[SVN r19117]
2003-07-14 20:09:43 +00:00
Dave Abrahams
dab4eaf3cb
GCC-2.x workarounds
...
[SVN r19078]
2003-07-11 23:47:01 +00:00
Dave Abrahams
2fe6582b77
Work properly with NO_MEMBER_TEMPLATE_FRIENDS
...
[SVN r19076]
2003-07-11 22:21:28 +00:00
Dave Abrahams
87fd676ddc
Work properly with NO_MEMBER_TEMPLATE_FRIENDS
...
[SVN r19071]
2003-07-11 22:15:35 +00:00
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
Jens Maurer
2fcd29ecc0
make the distribution usable with underlying floating-point generators
...
[SVN r15637]
2002-10-01 22:17:37 +00:00
Jens Maurer
78edc5c0c0
add operator!=
...
make operator<< and operator>> templated on CharT
add uniform iterator-based seed
[SVN r15636]
2002-10-01 22:16:49 +00:00
Jens Maurer
76240c64ef
add operator!=
...
make operator<< and operator>> templated on CharT
add uniform iterator-based seed
rename lagged_fibonacci to lagged_fibonacci_01, add integer lagged_fibonacci
[SVN r15635]
2002-10-01 22:15:50 +00:00
Jens Maurer
fb8ca8bd57
mplement the binomial distribution
...
[SVN r15634]
2002-10-01 21:15:59 +00:00
Jens Maurer
03292cbc94
add storage and retrieval of parameter p
...
[SVN r15633]
2002-10-01 21:15:09 +00:00
Jens Maurer
36f3e816b6
add operator!=
...
make operator<< and operator>> templated on CharT
add uniform iterator-based seed
remove superfluous template parameter
[SVN r15632]
2002-10-01 20:03:59 +00:00
Jens Maurer
c3f5ff0bbc
add operator!=
...
make operator<< and operator>> templated on CharT
add uniform iterator-based seed
add desired word bitsize "w" to interface
[SVN r15631]
2002-10-01 20:01:21 +00:00
Jens Maurer
dabc81d718
move ranlux bases here (from subtract_with_carry.hpp)
...
[SVN r15630]
2002-10-01 19:35:43 +00:00
Jens Maurer
cb3a335f7d
add operator!=
...
make operator<< and operator>> templated on CharT
add uniform iterator-based seed
[SVN r15629]
2002-10-01 19:31:58 +00:00
Jens Maurer
7910ff9f89
add operator!=
...
make operator<< and operator>> templated on CharT
add uniform iterator-based seed
[SVN r15588]
2002-09-30 22:52:55 +00:00
Jens Maurer
a332f69c44
add linear feedback shift engine
...
[SVN r15587]
2002-09-30 22:48:58 +00:00
Jens Maurer
d3db961b22
add xor_combine compound engine
...
[SVN r15586]
2002-09-30 22:47:54 +00:00
Jens Maurer
954519a948
add entropy() member function
...
[SVN r15585]
2002-09-30 22:46:05 +00:00
Jens Maurer
4e72545974
make parameters of the distribution available
...
[SVN r15584]
2002-09-30 22:43:55 +00:00
Jens Maurer
83a8e7cc6d
performance improvement: multiply by pre-computed factor instead
...
of dividing
[SVN r15583]
2002-09-30 22:43:05 +00:00
Jens Maurer
72879cd4d7
add base() and reset() member functions for distributions
...
[SVN r15582]
2002-09-30 22:43:04 +00:00
Jens Maurer
d291e8e79d
add poisson distribution
...
[SVN r15580]
2002-09-30 22:32:07 +00:00
Jens Maurer
3238081f5e
add gamma distribution
...
[SVN r15579]
2002-09-30 22:31:26 +00:00
Jens Maurer
8c98071497
add iterator-based seeding
...
add subtract_with_carry_01 floating-point engine
[SVN r15578]
2002-09-30 22:29:17 +00:00
Björn Karlsson
cd3f295c47
Merged from branch to trunk
...
[SVN r15463]
2002-09-20 11:58:08 +00:00
Jens Maurer
b745b11af9
add RanLux generator and required components
...
no reference to these generators exists yet
validation values need to be provided
[SVN r15307]
2002-09-13 21:30:54 +00:00
Peter Dimov
3869397bda
#include <iterator> added (reported by Neal Becker)
...
[SVN r15066]
2002-08-23 12:30:43 +00:00
Björn Karlsson
c20f8a01b9
Added copyright text
...
[SVN r14636]
2002-07-29 14:34:04 +00:00
Dave Abrahams
78e4693e75
Add missing #include
...
[SVN r13791]
2002-05-09 18:17:31 +00:00
John Maddock
a8103c3097
Patched to get const_mod working with Borland C++ Builder 6
...
[SVN r13668]
2002-05-05 10:57:07 +00:00
Jens Maurer
64625f5c1a
really fix endless loop (reported by Douglas Gregor and Fernando Cacciola)
...
[SVN r13178]
2002-03-11 20:31:05 +00:00
Jens Maurer
eb910ff396
avoid compiler warnings
...
[SVN r13039]
2002-03-03 09:14:31 +00:00
Jens Maurer
8cc4a6e726
remove obsolete comment
...
[SVN r13038]
2002-03-03 09:13:57 +00:00
Darin Adler
a79edda895
Always say "private noncopyable" to avoid warnings.
...
[SVN r12762]
2002-02-08 20:08:15 +00:00
Jens Maurer
2b874f33bc
add required definitions of integral static constants initialized in-class
...
[SVN r12208]
2002-01-03 22:21:34 +00:00
Jens Maurer
6c229da058
use BOOST_STATIC_CONSTANT
...
[SVN r12207]
2002-01-03 22:20:30 +00:00
Jens Maurer
b2a368be71
fix warnings
...
[SVN r12068]
2001-12-16 16:29:40 +00:00
Jens Maurer
e4edae0e91
move range comparison into constructor
...
[SVN r11915]
2001-12-04 21:09:46 +00:00
Douglas Gregor
d9b321b2e0
graph/isomorphism.hpp:
...
- Added some missing "typename"s
random/uniform_int.hpp:
- Don't include <limits> directly
[SVN r11802]
2001-11-29 04:03:52 +00:00
Jens Maurer
71a140ae3c
fix overflow bug and ensuing endless loop
...
[SVN r11797]
2001-11-28 21:44:26 +00:00
Jens Maurer
8652cc5944
expand comment
...
[SVN r11718]
2001-11-16 19:12:58 +00:00
Jens Maurer
5413178f77
removed iterator interface, as decided in Redmond
...
[SVN r11696]
2001-11-14 21:53:38 +00:00
Jens Maurer
4319f89ed2
try to work around SunPro overload problems
...
[SVN r11425]
2001-10-23 15:38:53 +00:00
Jens Maurer
dce521ff4a
gcc 3.0.x *does* honor using declarations in function templates.
...
[SVN r11289]
2001-09-26 21:45:25 +00:00
Jens Maurer
d3723a50be
properly copy state of iterator mixin, do not re-init the state on copy
...
[SVN r11002]
2001-09-03 18:21:32 +00:00
Jens Maurer
fb987e5f96
minor cosmetics
...
[SVN r10983]
2001-08-31 21:27:47 +00:00
Jens Maurer
788ab5128a
when copying a normal_distribution, need to throw away the cache to avoid
...
correlation (Michael Stevens)
[SVN r10973]
2001-08-30 21:50:48 +00:00
Jens Maurer
418b4744f6
also accept sigma == 0 as a degenerate (test) case (Michael Stevens)
...
[SVN r10472]
2001-06-28 18:40:22 +00:00
Jens Maurer
2954829b7c
free -> fee
...
[SVN r10253]
2001-06-01 17:14:54 +00:00
Jens Maurer
bbe0124885
*** empty log message ***
...
[SVN r10252]
2001-06-01 17:11:49 +00:00
Jens Maurer
68739e1521
remove bogus MSVC blaim
...
[SVN r10110]
2001-05-14 17:58:17 +00:00
Jens Maurer
6dbbbcd937
allow for non-const numeric_limits<> members
...
[SVN r10027]
2001-05-05 20:35:27 +00:00
Jens Maurer
16dd677905
pretend a verification value is available
...
[SVN r10022]
2001-05-05 20:15:35 +00:00
Jens Maurer
1b2042f9c3
fix recursive "seed()" call
...
[SVN r10021]
2001-05-05 20:14:02 +00:00
Jens Maurer
8f41984f89
add workaround for HP aCC
...
[SVN r10020]
2001-05-05 20:12:57 +00:00
Jens Maurer
d6159768fc
replace "enum" with BOOST_STATIC_CONSTANT
...
[SVN r9999]
2001-05-01 06:54:55 +00:00
Jens Maurer
add52a0921
split giant random.hpp header into smaller pieces in subdirectory boost/random/
...
[SVN r9779]
2001-04-14 13:28:42 +00:00
John Maddock
7b786dbcf2
Added boost-wide <limits> woraround
...
[SVN r9688]
2001-04-01 11:59:18 +00:00
Beman Dawes
449fc829bf
Correct spelling in Jens' licenses
...
[SVN r9372]
2001-03-01 18:54:36 +00:00
Jens Maurer
9e57aebc04
avoid "variable hiding" warning on Sun
...
[SVN r8874]
2001-02-02 21:24:15 +00:00
Jens Maurer
a2a9c85213
added necessary const_mod<unsigned long, 0> overload
...
[SVN r8682]
2001-01-21 19:14:18 +00:00
Jens Maurer
f0e46675ff
change calls to iterator_init() to this->iterator_init(),
...
because the member function is in a dependent base class
[SVN r8652]
2001-01-20 00:11:11 +00:00
Jens Maurer
becc54f7e9
add "using std::sqrt" for unqualified use of sqrt
...
[SVN r7926]
2000-10-11 17:23:54 +00:00
Jens Maurer
0caeb7b039
used BOOST_NO_INTEGRAL_INT64_T to avoid boost::rand48 on some compilers
...
[SVN r7875]
2000-09-29 22:08:21 +00:00
Jeremy Siek
7069532819
made sure no tabs
...
[SVN r7843]
2000-09-26 08:05:34 +00:00
Jens Maurer
263f4d3bb8
avoid using the ULL suffix for 64bit int literals, because it is not portable
...
[SVN r7794]
2000-09-24 19:33:22 +00:00
Jens Maurer
d7ea824a5e
use BOOST_NO_INT64_T to check availability of 64 bit integer support
...
[SVN r7781]
2000-09-23 16:31:15 +00:00
Jens Maurer
d63174b102
avoid two warnings with MSVC (thanks to Ed Brey)
...
remove spurious decrementable<> use (thanks to Matthias Troyer)
[SVN r7777]
2000-09-23 14:18:14 +00:00
Jens Maurer
d20ee06221
Moved basic class templates from namespace boost::detail to boost::random.
...
[SVN r7632]
2000-07-26 20:32:14 +00:00
Beman Dawes
d3f2697312
This commit was generated by cvs2svn to compensate for changes in r4,
...
which included commits to RCS files with non-trunk default branches.
[SVN r7621]
2000-07-07 16:04:40 +00:00