]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/cone/permutation_invariant.py
README: rewrite it, it was rather out-of-date
[sage.d.git] / mjo / cone / permutation_invariant.py
index 1c72565fb6532e7692904dc70db7907dab4c3ff1..d0715867a35770470cb47c384d3b84656d012a2c 100644 (file)
@@ -59,13 +59,12 @@ def is_permutation_invariant(K):
     The rearrangement cone is permutation-invariant::
 
         sage: all( is_permutation_invariant(rearrangement_cone(p,n))
-        ....:               for n in xrange(3, 6)
-        ....:               for p in xrange(1, n) )
+        ....:               for n in range(3, 6)
+        ....:               for p in range(1, n) )
         True
 
     As is the nonnegative orthant::
 
-        sage: set_random_seed()
         sage: K = nonnegative_orthant(ZZ.random_element(5))
         sage: is_permutation_invariant(K)
         True