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 SeedType> 
  void seed(PRNG & prng, unsigned int num, unsigned int total, 
            SeedType const & s);

Description

provides a convenience function for parallel seeding from a single global seed by asssuming a named parameter seeding interface. It is implemented as prng.seed(global_seed=s, stream_number=num, total_streams=total);

Requirements: 0 <= num < total

Parameters:

num

the stream number

prng

the parallel random nubmber generator

s

the global seed

total

the total number of streams

Copyright © 2006-2008 Brigitte Surer, Matthias Troyer

PrevUpHomeNext