RandomLib  1.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Classes | Namespaces | Macros
MPFRRandom.hpp File Reference

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) }; }
 

Detailed Description

Header for MPFRRandom.

Utility class for MPFRUniform, MPFRExponential, and MPFRNormal.

Copyright (c) Charles Karney (2012) charl.nosp@m.es@k.nosp@m.arney.nosp@m..com and licensed under the MIT/X11 License. For more information, see http://randomlib.sourceforge.net/

Definition in file MPFRRandom.hpp.

Macro Definition Documentation

#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) }; }