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, typename Iterator> 
  void seed(PRNG & prng, unsigned int num, unsigned int total, 
            Iterator & first, Iterator const & last);

Description

provides a default implementation of the parallel seeding from a pair iterators by asssuming a named parameter seeding interface. It is implemented as prng.seed(first, last, global_seed=s, stream_number=num, total_streams=total);

Requirements: 0 <= num < total

Parameters:

first

an iterator to the beginning of a seed block

last

an iterator to the end of a seed block

num

the stream number

prng

the parallel random nubmber generator

total

the total number of streams

Copyright © 2006-2008 Brigitte Surer, Matthias Troyer

PrevUpHomeNext