|
finitediff
|
#include <MelementaryPermutation.h>


Public Member Functions | |
| MelementaryPermutation (const unsigned int A, const unsigned int B) | |
| unsigned int | getA () const |
| Return the first of the two elements that are permuted. More... | |
| unsigned int | getB () const |
| Return the second of the two elements that are permuted. More... | |
| unsigned int | image (const unsigned int k) const override |
| return by value the image of 'k' by the permutation. More... | |
Public Member Functions inherited from MgenericPermutation< tp_size > | |
| virtual unsigned int | operator() (const unsigned int k) const final |
Private Attributes | |
| const unsigned int | data_elA |
| const unsigned int | data_elB |
Friends | |
| template<unsigned int s> | |
| std::ostream & | operator<< (std::ostream &, MelementaryPermutation< s >) |
This class represents an elementary permutation, that is a permutation that permutes only two elements.
| MelementaryPermutation< tp_size >::MelementaryPermutation | ( | const unsigned int | A, |
| const unsigned int | B | ||
| ) |
| A | an unsigned integer between 0 and tp_size |
| B | an unsigned integer between 0 and tp_size |
Construct the permutation of
and
.
| unsigned int MelementaryPermutation< tp_size >::getA | ( | ) | const |
Return the first of the two elements that are permuted.
| unsigned int MelementaryPermutation< tp_size >::getB | ( | ) | const |
Return the second of the two elements that are permuted.
|
overridevirtual |
return by value the image of 'k' by the permutation.
Implements MgenericPermutation< tp_size >.
|
friend |
|
private |
The permutation permutes data_elA with data_elB
|
private |
The permutation permutes data_elA with data_elB
1.8.11