ompl::Permutation Class Reference
A permutation of indices into an array. More...
#include <ompl/datastructures/Permutation.h>
Inheritance diagram for ompl::Permutation:

Public Member Functions | |
Permutation (std::size_t n) | |
Create a permutation of the numbers 0, ... , n - 1. More... | |
void | permute (unsigned int n) |
Create a permutation of the numbers 0, ..., n - 1. More... | |
Detailed Description
A permutation of indices into an array.
This class tends to be faster than the two-argument version of std::random_shuffle when permute is called several times, since the random number generator doesn't need to be allocated each time.
Definition at line 49 of file Permutation.h.
Constructor & Destructor Documentation
◆ Permutation()
|
inline |
Create a permutation of the numbers 0, ... , n - 1.
Definition at line 53 of file Permutation.h.
Member Function Documentation
◆ permute()
|
inline |
Create a permutation of the numbers 0, ..., n - 1.
Definition at line 58 of file Permutation.h.
The documentation for this class was generated from the following file:
- ompl/datastructures/Permutation.h