-from sage.all import *
-
def random_permutation_invariant_cone(lattice=None,
min_ambient_dim=0,
max_ambient_dim=None,
# them with permutation matrices.
V = K.lattice().vector_space()
- # The set of all permutatin matrices on ``V``.
+ # The set of all permutation matrices on ``V``.
+ from sage.groups.perm_gps.permgroup_named import SymmetricGroup
Sn = ( p.matrix() for p in SymmetricGroup(V.dimension()) )
# Set of permuted generators
pgens = ( permutation*V(g) for permutation in Sn for g in K )
+ from sage.geometry.cone import Cone
return Cone(pgens, K.lattice())
V = K.lattice().vector_space()
# The set of all permutation matrices on ``V``.
+ from sage.groups.perm_gps.permgroup_named import SymmetricGroup
Sn = ( p.matrix() for p in SymmetricGroup(V.dimension()) )
return all(K.contains(permutation*V(g))