Cayley
Pseudo-Random Bits from Finite Groups
Classes | Functions
Permutation.h File Reference

Declaration of the permutation CPerm. More...

#include <cinttypes>
#include "uintx_t.h"

Go to the source code of this file.

Classes

class  CPerm
 Permutation. More...
 

Functions

bool operator== (const CPerm &p0, const CPerm &p1)
 Is equal to. More...
 
bool operator!= (const CPerm &p0, const CPerm &p1)
 Is not equal to. More...
 

Function Documentation

◆ operator!=()

bool operator!= ( const CPerm p0,
const CPerm p1 
)

Test whether a pair of permutations are different. Permutations are different iff they are different sizes or they have different maps. Uses operator== to do the actual work.

Parameters
p0A permutation.
p1A permutation.
Returns
true if p0 and p1 are different.

Definition at line 230 of file Permutation.cpp.

◆ operator==()

bool operator== ( const CPerm p0,
const CPerm p1 
)

Equality test.

Test whether a pair of permutations are identical. Permutations are identical iff they are the same size and they have identical maps.

Parameters
p0A permutation.
p1A permutation.
Returns
true if p0 and p1 are identical.

Definition at line 240 of file Permutation.cpp.