Regina Calculation Engine
Classes | Namespaces | Functions | Variables
nperm.h File Reference

Deals with permutations of {0,1,2,3}. More...

#include <string>

Classes

class  regina::NPerm
 Represents a permutation of {0,1,2,3}. More...

Namespaces

namespace  regina
 

Contains the entire Regina calculation engine.


Functions

std::ostream & regina::operator<< (std::ostream &out, const NPerm &p)
 Writes a string representation of the given permutation to the given output stream.
NPerm regina::faceOrdering (int face)
 Returns a permutation mapping (0,1,2) to the vertices of the given tetrahedron face in their canonical order.
NPerm regina::edgeOrdering (int edge)
 Returns a permutation mapping (0,1) to the vertices of the given tetrahedron edge in their canonical order.
std::string regina::faceDescription (int face)
 Returns a string representation of the permutation mapping (0,1,2) to the vertices of the given tetrahedron face in their canonical order, as described in faceOrdering().
std::string regina::faceDescription (const NPerm &facePerm)
 Returns a string representation of the given permutation with only the images of 0, 1 and 2 included.
std::string regina::edgeDescription (int edge)
 Returns a string representation of the permutation mapping (0,1) to the vertices of the given tetrahedron edge in their canonical order, as described in edgeOrdering().
std::string regina::edgeDescription (const NPerm &edgePerm)
 Returns a string representation of the given permutation with only the images of 0 and 1 included.

Variables

const NPerm * regina::allPermsS4
 An array of size 24 containing all possible permutations of four elements.
const unsigned * regina::allPermsS4Inv
 An array of size 24 containing the inverses of the permutations in the array allPermsS4.
const NPerm * regina::orderedPermsS4
 An array of size 24 containing all possible permutations of four elements in lexicographical order.
const NPerm * regina::allPermsS3
 An array of size 6 containing all possible permutations of three elements.
const unsigned * regina::allPermsS3Inv
 An array of size 6 containing the inverses of the permutations in the array allPermsS3.
const NPerm * regina::orderedPermsS3
 An array of size 6 containing all possible permutations of three elements in lexicographical order.
const NPerm * regina::allPermsS2
 An array of size 2 containing all possible permutations of two elements.
const unsigned * regina::allPermsS2Inv
 An array of size 2 containing the inverses of the permutations in the array allPermsS2.

Detailed Description

Deals with permutations of {0,1,2,3}.


Copyright © 1999-2009, Ben Burton
This software is released under the GNU General Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).