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

Coverage test for RandomLib. More...

#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <RandomLib/Random.hpp>
#include <RandomLib/NormalDistribution.hpp>
#include <RandomLib/ExponentialDistribution.hpp>
#include <RandomLib/RandomSelect.hpp>
#include <RandomLib/LeadingZeros.hpp>
#include <RandomLib/ExponentialProb.hpp>
#include <RandomLib/RandomNumber.hpp>
#include <RandomLib/UniformInteger.hpp>
#include <RandomLib/ExactExponential.hpp>
#include <RandomLib/ExactNormal.hpp>
#include <RandomLib/DiscreteNormal.hpp>
#include <RandomLib/DiscreteNormalAlt.hpp>
#include <RandomLib/ExactPower.hpp>
#include <RandomLib/InversePiProb.hpp>
#include <RandomLib/InverseEProb.hpp>

Go to the source code of this file.

Macros

#define repeat   for (int i = 0; i < 1000; ++i)
 

Functions

void coverage32 ()
 
void coverage64 ()
 
int main (int, char **)
 

Detailed Description

Coverage test for RandomLib.

Compile/link with, e.g.,
g++ -I../include -O2 -funroll-loops -o RandomCoverage RandomCoverage.cpp ../src/Random.cpp
./RandomCoverage

This executes nearly all of the public functions in RandomLib. This is important, since it allows the compiler to check the code which appears in header files. It also shows how templated functions can be invoked.

Copyright (c) Charles Karney (2006-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 RandomCoverage.cpp.

Macro Definition Documentation

#define repeat   for (int i = 0; i < 1000; ++i)

Definition at line 39 of file RandomCoverage.cpp.

Referenced by coverage32(), and coverage64().

Function Documentation

void coverage32 ( )
void coverage64 ( )
int main ( int  ,
char **   
)