Rosetta  3.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
  • -