Changeset 2145 for trunk/yat/random/random.h
- Timestamp:
- Jan 15, 2010, 8:36:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/random/random.h
r2142 r2145 6 6 /* 7 7 Copyright (C) 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson 8 Copyright (C) 2009 Peter Johansson8 Copyright (C) 2009, 2010 Peter Johansson 9 9 10 10 This file is part of the yat library, http://dev.thep.lu.se/yat … … 25 25 26 26 #include "yat/statistics/Histogram.h" 27 28 #include <boost/concept_check.hpp> 27 29 28 30 #include <gsl/gsl_rng.h> … … 602 604 random generator and thereby using the underlying RNG class, 603 605 which is singleton. 606 607 RandomAccessIterator must be mutable 604 608 */ 605 609 template<typename RandomAccessIterator> 606 610 void random_shuffle(RandomAccessIterator first, RandomAccessIterator last) 607 611 { 612 typedef RandomAccessIterator rai; 613 typedef boost::Mutable_RandomAccessIteratorConcept<rai> mric; 614 boost::function_requires<mric>(); 608 615 DiscreteUniform rnd; 609 616 std::random_shuffle(first, last, rnd);
Note: See TracChangeset
for help on using the changeset viewer.