Utilities

simple random number generator, used in ensemble classes More...

Classes

class  graphgen::symmetric_matrix< T >
 Symmetric matrix container data type<T>. More...

Typedefs

typedef RNG_DRAND48 graphgen::RNG

Functions

template<class Ch, class Tr>
std::basic_ostream< Ch, Tr > & graphgen::tab (std::basic_ostream< Ch, Tr > &s)
 output a tab character to an output stream using a manipulator stream << tab << "something"
void graphgen::err (const char *msg)
unsigned int graphgen::ltm_index (unsigned int i, unsigned int j)
 calculate storage index of a_{ij} in a lower triangular matrix for storage of symmetric matrices

Detailed Description

simple random number generator, used in ensemble classes

integer pool

Todo:
offer different RNGs for use and remove it
represents a set of integers in [0,m-1]. Class is parametrised by an integer type. Elements can be taken from and put back into the pool. Two subsets are identified: taken and available elements can be

Function Documentation

unsigned int graphgen::ltm_index ( unsigned int  i,
unsigned int  j 
) [inline]

calculate storage index of a_{ij} in a lower triangular matrix for storage of symmetric matrices

this is used in weight storage tables (half memory usage), and for correlation histograms

Todo:
use symmetric_matrix instead


Generated on Wed Jun 2 14:49:07 2010 for GraphGen by  doxygen 1.5.6