diagrams.CubeDiagram
- class rewalt.diagrams.CubeDiagram(ambient)
Bases:
DiagramSubclass of
Diagramfor diagrams whose shape is an oriented cube.The methods of this class provide an implementation of the structural maps of a cubical set with connections.
Methods
cube_connection(k, sign)Returns one of the connections of the cube.
Returns one of the degeneracies of the cube.
cube_face(k, sign)Returns one of the faces of the cube.
- cube_face(k, sign)
Returns one of the faces of the cube.
This is, by definition, the pullback of the diagram along
self.shape.cube_face(k, sign).- Parameters
k (
int) – Index of the face, ranging from0toself.dim - 1.sign (
str) – Side:'-'or'+'.
- Returns
cube_face – The face.
- Return type
- Raises
ValueError – If the index is out of range.
- cube_degeneracy(k)
Returns one of the degeneracies of the cube.
This is, by definition, the pullback of the diagram along
self.shape.cube_degeneracy(k).- Parameters
k (
int) – The index of the degeneracy, ranging from0toself.dim.- Returns
cube_degeneracy – The degeneracy.
- Return type
- Raises
ValueError – If the index is out of range.
- cube_connection(k, sign)
Returns one of the connections of the cube.
This is, by definition, the pullback of the diagram along
self.shape.cube_connection(k, sign).- Parameters
k (
int) – Index of the connection, ranging from0toself.dim - 1.sign (
str) – Side:'-'or'+'.
- Returns
cube_face – The connection.
- Return type
- Raises
ValueError – If the index is out of range.