C++ Reference
C++ Reference: Algorithms
SparsePermutation
Detailed Description
Definition at line 27 of file sparse_permutation.h.
Classes | |
struct | Iterator |
Public Member Functions | |
SparsePermutation (int size) | |
int | Size () const |
int | NumCycles () const |
const std::vector< int > & | Support () const |
Iterator | Cycle (int i) const |
int | LastElementInCycle (int i) const |
void | AddToCurrentCycle (int x) |
void | CloseCurrentCycle () |
void | RemoveCycles (const std::vector< int > &cycle_indices) |
std::string | DebugString () const |
Constructor & Destructor Documentation
◆ SparsePermutation()
|
inlineexplicit |
Definition at line 29 of file sparse_permutation.h.
Member Function Documentation
◆ AddToCurrentCycle()
|
inline |
Definition at line 84 of file sparse_permutation.h.
◆ CloseCurrentCycle()
|
inline |
Definition at line 90 of file sparse_permutation.h.
◆ Cycle()
|
inline |
Definition at line 117 of file sparse_permutation.h.
◆ DebugString()
std::string DebugString | ( | ) | const |
◆ LastElementInCycle()
|
inline |
Definition at line 124 of file sparse_permutation.h.
◆ NumCycles()
|
inline |
Definition at line 33 of file sparse_permutation.h.
◆ RemoveCycles()
void RemoveCycles | ( | const std::vector< int > & | cycle_indices | ) |
◆ Size()
|
inline |
Definition at line 32 of file sparse_permutation.h.
◆ Support()
|
inline |
Definition at line 37 of file sparse_permutation.h.
The documentation for this class was generated from the following file: