TiledArray::detail::MakeRandom< ValueType > Struct Template Reference

Documentation

template<typename ValueType>
struct TiledArray::detail::MakeRandom< ValueType >

Struct wrapping the process of generating a random value of type ValueType

MakeRandom contains a single static member function generate_value, which can be called to generate a random value of type ValueType between 0 and 1. Users can specialize the MakeRandom class to control how random values of other types are formed.

Template Parameters
ValueTypeThe type of random value to generate

Definition at line 92 of file random.h.

Static Public Member Functions

static ValueType generate_value ()
 Generates a random value of type ValueType. More...
 

Member Function Documentation

◆ generate_value()

template<typename ValueType >
static ValueType TiledArray::detail::MakeRandom< ValueType >::generate_value ( )
inlinestatic

Generates a random value of type ValueType.

Definition at line 94 of file random.h.

Here is the caller graph for this function:

The documentation for this struct was generated from the following file: