RandomLib
1.10
|
Header for MPFRRandom. More...
#include <algorithm>
#include <mpfr.h>
Go to the source code of this file.
Classes | |
class | RandomLib::MPFRRandom< bits > |
Handling random numbers in MPFR. More... | |
Namespaces | |
RandomLib | |
Namespace for RandomLib. | |
Macros | |
#define | HAVE_MPFR (MPFR_VERSION_MAJOR >= 3) |
#define | STATIC_ASSERT(cond, reason) { enum{ STATIC_ASSERT_ENUM = 1/int(cond) }; } |
Header for MPFRRandom.
Utility class for MPFRUniform, MPFRExponential, and MPFRNormal.
Copyright (c) Charles Karney (2012) charl and licensed under the MIT/X11 License. For more information, see es@k arney .comhttp://randomlib.sourceforge.net/
Definition in file MPFRRandom.hpp.
#define HAVE_MPFR (MPFR_VERSION_MAJOR >= 3) |
Definition at line 18 of file MPFRRandom.hpp.
#define STATIC_ASSERT | ( | cond, | |
reason | |||
) | { enum{ STATIC_ASSERT_ENUM = 1/int(cond) }; } |
A compile-time assert. Use C++11 static_assert, if available.
Definition at line 31 of file MPFRRandom.hpp.
Referenced by RandomLib::RandomCanonical< Generator >::Bits(), RandomLib::DiscreteNormal< IntType >::DiscreteNormal(), RandomLib::DiscreteNormalAlt< IntType, bits >::DiscreteNormalAlt(), RandomLib::RandomCanonical< Generator >::Fixed(), RandomLib::RandomCanonical< Generator >::FixedC(), RandomLib::RandomCanonical< Generator >::FixedO(), RandomLib::RandomCanonical< Generator >::FixedW(), RandomLib::RandomNumber< bits >::Fraction(), RandomLib::RandomNumber< bits >::Init(), RandomLib::RandomCanonical< Generator >::Integer(), RandomLib::RandomCanonical< Generator >::IntegerC(), RandomLib::MPFRRandom< bits >::MPFRRandom(), RandomLib::SFMT19937< RandomType >::NormalizeState(), RandomLib::LeadingZeros::operator()(), RandomLib::ExponentialProb::operator()(), RandomLib::RandomCanonical< Generator >::RandomCanonical(), RandomLib::RandomSelect< NumericType >::RandomSelect(), RandomLib::RandomSeed::SeedWord(), RandomLib::UniformInteger< IntType, bits >::UniformInteger(), and RandomLib::RandomNumber< bits >::Value().