GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
Utilities::ShuffledIndex< R > Class Template Reference

Gives a randomized sequence of numbers from 0 to N-1. More...

#include <utilities_slsim.h>

Public Member Functions

 ShuffledIndex (size_t N, R &ran)
 
size_t operator* ()
 return the index number
 
size_t operator++ (int)
 goto the next number
 
size_t operator++ ()
 goto the next number
 
void reshuffle (R &ran)
 get a new random order
 

Detailed Description

template<typename R>
class Utilities::ShuffledIndex< R >

Gives a randomized sequence of numbers from 0 to N-1.

If the sequence is exhausted then it is reshuffled and numbers will repeat in randomized order.


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