MADNESS 0.10.1
ran.h File Reference
#include <madness/madness_config.h>
#include <algorithm>
#include <mutex>
#include <complex>
Include dependency graph for ran.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  madness::Random
 A random number generator (portable, vectorized, and thread-safe). More...
struct  madness::RandomState

Namespaces

namespace  madness
 Namespace for all elements and tools of MADNESS.

Typedefs

typedef std::complex< double > double_complex
typedef std::complex< float > float_complex

Functions

template<class T>
T madness::RandomValue ()
 Random value that wraps the default Fibonacci generator.
template<>
double madness::RandomValue< double > ()
 Random double.
template<>
double_complex madness::RandomValue< double_complex > ()
 Random double_complex.
template<>
float madness::RandomValue< float > ()
 Random float.
template<>
float_complex madness::RandomValue< float_complex > ()
 Random float_complex.
template<>
int madness::RandomValue< int > ()
 Random int.
template<>
long madness::RandomValue< long > ()
 Random long.
template<class T>
void madness::RandomVector (int n, T *t)
template<>
void madness::RandomVector< double > (int n, double *t)
template<>
void madness::RandomVector< double_complex > (int n, double_complex *t)
template<>
void madness::RandomVector< float > (int n, float *t)
template<>
void madness::RandomVector< float_complex > (int n, float_complex *t)

Typedef Documentation

◆ double_complex

typedef std::complex<double> double_complex

◆ float_complex

typedef std::complex<float> float_complex