Cayley
Pseudo-Random Bits from Finite Groups
Functions
Permutation.cpp File Reference

Implementation of the permutation CPerm. More...

#include <string.h>
#include "Permutation.h"
#include "Includes.h"

Go to the source code of this file.

Functions

bool operator!= (const CPerm &p0, const CPerm &p1)
 Is not equal to. More...
 
bool operator== (const CPerm &p0, const CPerm &p1)
 Is 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 
)

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.