]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
cone/schur.py: use xrange in one place.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 4 Nov 2018 05:59:45 +0000 (01:59 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 4 Nov 2018 05:59:45 +0000 (01:59 -0400)
mjo/cone/schur.py

index d1bad98bb2b6b2a8f5be968efd29e0c79cf9f1fb..dca7292807096997a18bf5a57ae7dc400f3be187 100644 (file)
@@ -59,7 +59,7 @@ def schur_cone(n):
         sage: set_random_seed()
         sage: def majorized_by(x,y):
         ....:     return (all(sum(x[0:i]) <= sum(y[0:i])
-        ....:                 for i in range(x.degree()-1))
+        ....:                 for i in xrange(x.degree()-1))
         ....:             and sum(x) == sum(y))
         sage: n = ZZ.random_element(10)
         sage: V = VectorSpace(QQ, n)