ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Function template seed

alps::random::parallel::seed

Synopsis

// In header: <alps/random/parallel/seed.hpp>


template<typename PRNG> 
  void seed(PRNG & prng, unsigned int num, unsigned int total);

Description

provides a default implementation of the default parallel seeding function by asssuming a named parameter seeding interface. It is implemented as prng.seed(stream_number=num, total_streams=total);

Requirements: 0 <= num < total

Parameters:

num

the stream number

prng

the parallel random nubmber generator

total

the total number of streams

Copyright © 2006-2008 Brigitte Surer, Matthias Troyer

PrevUpHomeNext