Rosetta Utilities  2014.35
Namespaces | Functions
random_permutation.hh File Reference

Reorder the elements in a vector using a RNG object. More...

#include <numeric/random/random.hh>
#include <utility/vector0.hh>
#include <utility/vector1.hh>
#include <algorithm>
#include <cmath>
#include <iostream>

Namespaces

 numeric
 Unit headers.
 
 numeric::random
 

Functions

template<class T >
void numeric::random::random_permutation (utility::vector1< T > &vect, RandomGenerator &rg)
 
template<class T >
void numeric::random::random_permutation (utility::vector0< T > &vect, RandomGenerator &rg)
 
template<class T >
void numeric::random::random_permutation (std::vector< T > &vect, RandomGenerator &rg)
 
template<typename RandomAccessIterator >
void numeric::random::random_permutation (RandomAccessIterator first, RandomAccessIterator last, RandomGenerator &rg)
 randomly shuffle elements of a sequence More...
 

Detailed Description

Reorder the elements in a vector using a RNG object.

Author
Andrew Leaver-Fay
Remarks
  • -