|
finitediff
|
This class represents a permutation (not a matrix). More...
#include <MelementaryPermutation.h>


Public Member Functions | |
| Mpermutation (const std::array< unsigned int, tp_size > &d) | |
| Mpermutation (const MelementaryPermutation< tp_size > &) | |
| Mpermutation () | |
| unsigned int | image (const unsigned int k) const override |
| unsigned int & | at (const unsigned int k) |
| return by reference the image of 'k' by the permutation More... | |
| Mpermutation< tp_size > | inverse () const |
Public Member Functions inherited from MgenericPermutation< tp_size > | |
| virtual unsigned int | operator() (const unsigned int k) const final |
Private Attributes | |
| std::array< unsigned int, tp_size > | data |
Friends | |
| template<unsigned int s> | |
| std::ostream & | operator<< (std::ostream &, Mpermutation< s >) |
| template<unsigned int s> | |
| bool | operator== (const Mpermutation< s > &, const Mpermutation< s > &) |
This class represents a permutation (not a matrix).
The permutation is recorded in the array
The array
represents the permutation that maps
,
,
and
.
The numbers
must be different and in [0,tp_size].
| Mpermutation< tp_size >::Mpermutation | ( | const std::array< unsigned int, tp_size > & | d | ) |
| Mpermutation< tp_size >::Mpermutation | ( | const MelementaryPermutation< tp_size > & | p | ) |
| Mpermutation< tp_size >::Mpermutation | ( | ) |
The no-argument constructors initializes to identity
| unsigned int & Mpermutation< tp_size >::at | ( | const unsigned int | k | ) |
return by reference the image of 'k' by the permutation
Allows to populate.
|
overridevirtual |
return by value the image of k
Implements MgenericPermutation< tp_size >.
| Mpermutation< tp_size > Mpermutation< tp_size >::inverse | ( | ) | const |
Return the inverse permutation
|
friend |
|
friend |
|
private |
1.8.11