Skylark (Sketching Library)  0.1
Public Types | Public Member Functions | Static Public Member Functions
skylark::utility::random_array_t Struct Reference

#include <randgen.hpp>

List of all members.

Public Types

typedef r123::Threefry4x64 RNG_t
typedef RNG_t::ctr_type ctr_t
typedef RNG_t::key_type key_t
typedef r123::MicroURNG< RNG_tURNG_t

Public Member Functions

 random_array_t (size_t base, size_t size, int seed)
int operator[] (size_t index) const

Static Public Member Functions

static key_t _seed_to_key (int seed)

Detailed Description

Random-access array of random numbers.

Definition at line 129 of file randgen.hpp.


Member Typedef Documentation

typedef RNG_t::ctr_type skylark::utility::random_array_t::ctr_t

Definition at line 136 of file randgen.hpp.

typedef RNG_t::key_type skylark::utility::random_array_t::key_t

Definition at line 137 of file randgen.hpp.

typedef r123::Threefry4x64 skylark::utility::random_array_t::RNG_t

Convenience nicknames for Random123 types

Definition at line 135 of file randgen.hpp.

Definition at line 138 of file randgen.hpp.


Constructor & Destructor Documentation

skylark::utility::random_array_t::random_array_t ( size_t  base,
size_t  size,
int  seed 
) [inline]

Random-access array of random numbers.

Parameters:
[in]baseStart location within a global stream.
[in]sizeThe number of random numbers provided.
[in]seedThe seed for the array.
Todo:
Bounds checking.

Definition at line 160 of file randgen.hpp.

References max(), and SKYLARK_THROW_EXCEPTION.

Here is the call graph for this function:


Member Function Documentation

static key_t skylark::utility::random_array_t::_seed_to_key ( int  seed) [inline, static]

Definition at line 143 of file randgen.hpp.

int skylark::utility::random_array_t::operator[] ( size_t  index) const [inline]

Definition at line 173 of file randgen.hpp.

References SKYLARK_THROW_EXCEPTION.


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