Transf, PPerm, and Perm helpers
This page contains the documentation for various helper functions for manipulating transformations, partial permutations, and permutations.
Contents
|
Returns the set of points where a partial transformation is defined. |
|
Returns the set of points in the image of a partial transformation. |
|
Returns the inverse of a partial perm or permutation. |
|
Returns the left one of a partial perm. |
|
Returns the identity on the same number of points as the degree of f. |
|
Returns the right one of a partial perm. |
Full API
This page contains the documentation for the transf
subpackage, that
contains helper functions for the Transf
, Perm
, PPerm
classes.
- transf.domain(f: Transf | PPerm | Perm) list[int]
Returns the set of points where a partial transformation is defined.
This function returns a
list[int]
containing those valuesi
such that:\(i\in \{0, \ldots, n - 1\}\) where n is the degree of f; and
f[i] != UNDEFINED
(only applies to partial perms).
- transf.image(f: Transf | PPerm | Perm) list[int]
Returns the set of points in the image of a partial transformation.
Returns a
list[int]
containing those valuesf[i]
such that:\(i\in \{0, \ldots, n - 1\}\) where n is the degree of f; and
f[i] != UNDEFINED
.
- transf.inverse(f: PPerm | Perm) PPerm | Perm
Returns the inverse of a partial perm or permutation.
This function returns a newly constructed inverse of f. The inverse of a partial permutation f is the partial perm
g
such thatfgf = f
andgfg = g
.
- transf.left_one(f: PPerm) PPerm
Returns the left one of a partial perm.
This function returns a newly constructed partial perm with degree equal to that of f that fixes every value in the domain of f, and is
UNDEFINED
on any other values.
- transf.one(f: Transf | PPerm | Perm) Transf | PPerm | Perm
Returns the identity on the same number of points as the degree of f. This function returns a newly constructed object of the same type as f that fixes every value from
0
tof.degree()
.