finitediff
Public Member Functions | List of all members
MgenericPermutation< tp_size > Class Template Referenceabstract

A permutation is a bijection of a finite subset of N. More...

#include <MgenericPermutation.h>

Inheritance diagram for MgenericPermutation< tp_size >:
Inheritance graph
[legend]

Public Member Functions

virtual unsigned int operator() (const unsigned int k) const final
 
virtual unsigned int image (const unsigned int k) const =0
 

Detailed Description

template<unsigned int tp_size>
class MgenericPermutation< tp_size >

A permutation is a bijection of a finite subset of N.

A permutation is a bijection of a set of the form $ \{0,1,...,n\} $ for some $ n $.

The template parameter <unsigned int tp_size> is the $ n $.

This virtual base class provides the common operations of MelementaryPermutation and Mpermutation.

Member Function Documentation

template<unsigned int tp_size>
virtual unsigned int MgenericPermutation< tp_size >::image ( const unsigned int  k) const
pure virtual

return by value the image of k

Implemented in MelementaryPermutation< tp_size >, and Mpermutation< tp_size >.

template<unsigned int tp_size>
unsigned int MgenericPermutation< tp_size >::operator() ( const unsigned int  k) const
finalvirtual

return by value the image of k


The documentation for this class was generated from the following file: