X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=mjo%2Fcone%2Fpermutation_invariant.py;h=d0715867a35770470cb47c384d3b84656d012a2c;hb=928b7d49fda98ff105c92293b5797bb7a2b9873a;hp=1c72565fb6532e7692904dc70db7907dab4c3ff1;hpb=d692390065e0982d58050161966fa313495b61ba;p=sage.d.git diff --git a/mjo/cone/permutation_invariant.py b/mjo/cone/permutation_invariant.py index 1c72565..d071586 100644 --- a/mjo/cone/permutation_invariant.py +++ b/mjo/cone/permutation_invariant.py @@ -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