fix doc example typo
[boost.git] / boost / random / ranlux.hpp
blobc4f07b54175a49c080f10e3192dbd0926456b46b
1 /* boost random/ranlux.hpp header file
3 * Copyright Jens Maurer 2002
4 * Distributed under the Boost Software License, Version 1.0. (See
5 * accompanying file LICENSE_1_0.txt or copy at
6 * http://www.boost.org/LICENSE_1_0.txt)
8 * See http://www.boost.org for most recent version including documentation.
10 * $Id$
12 * Revision history
13 * 2001-02-18 created
16 #ifndef BOOST_RANDOM_RANLUX_HPP
17 #define BOOST_RANDOM_RANLUX_HPP
19 #include <boost/config.hpp>
20 #include <boost/random/subtract_with_carry.hpp>
21 #include <boost/random/discard_block.hpp>
23 namespace boost {
25 namespace random {
26 typedef subtract_with_carry<int, (1<<24), 10, 24, 0> ranlux_base;
27 typedef subtract_with_carry_01<float, 24, 10, 24> ranlux_base_01;
28 typedef subtract_with_carry_01<double, 48, 10, 24> ranlux64_base_01;
31 typedef random::discard_block<random::ranlux_base, 223, 24> ranlux3;
32 typedef random::discard_block<random::ranlux_base, 389, 24> ranlux4;
34 typedef random::discard_block<random::ranlux_base_01, 223, 24> ranlux3_01;
35 typedef random::discard_block<random::ranlux_base_01, 389, 24> ranlux4_01;
37 typedef random::discard_block<random::ranlux64_base_01, 223, 24> ranlux64_3_01;
38 typedef random::discard_block<random::ranlux64_base_01, 389, 24> ranlux64_4_01;
40 #if !defined(BOOST_NO_INT64_T) && !defined(BOOST_NO_INTEGRAL_INT64_T)
41 namespace random {
42 typedef random::subtract_with_carry<int64_t, (int64_t(1)<<48), 10, 24, 0> ranlux64_base;
44 typedef random::discard_block<random::ranlux64_base, 223, 24> ranlux64_3;
45 typedef random::discard_block<random::ranlux64_base, 389, 24> ranlux64_4;
46 #endif /* !BOOST_NO_INT64_T && !BOOST_NO_INTEGRAL_INT64_T */
48 } // namespace boost
50 #endif // BOOST_RANDOM_LINEAR_CONGRUENTIAL_HPP