]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
mjo/cone/permutation_invariant.py: use cones.foo() from sage
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 19 May 2024 01:47:13 +0000 (21:47 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 19 May 2024 01:47:13 +0000 (21:47 -0400)
mjo/cone/permutation_invariant.py

index d0715867a35770470cb47c384d3b84656d012a2c..982dd2979ac861d41528749e031e7fb24c3dc5f2 100644 (file)
@@ -50,22 +50,22 @@ def is_permutation_invariant(K):
 
     SETUP::
 
-        sage: from mjo.cone.nonnegative_orthant import nonnegative_orthant
-        sage: from mjo.cone.permutation_invariant import is_permutation_invariant
-        sage: from mjo.cone.rearrangement import rearrangement_cone
+        sage: from mjo.cone.permutation_invariant import (
+        ....:   is_permutation_invariant
+        ....: )
 
     EXAMPLES:
 
     The rearrangement cone is permutation-invariant::
 
-        sage: all( is_permutation_invariant(rearrangement_cone(p,n))
+        sage: all( is_permutation_invariant(cones.rearrangement(p,n))
         ....:               for n in range(3, 6)
         ....:               for p in range(1, n) )
         True
 
     As is the nonnegative orthant::
 
-        sage: K = nonnegative_orthant(ZZ.random_element(5))
+        sage: K = cones.nonnegative_orthant(ZZ.random_element(5))
         sage: is_permutation_invariant(K)
         True