]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
cone/rearrangement.py: fix the test for propriety.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 12 Nov 2018 03:11:53 +0000 (22:11 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 12 Nov 2018 03:11:53 +0000 (22:11 -0500)
We had a test for the rearrangement cone being proper, but it
incorrectly tested the p=0 case. Now that we're sanity-checking p,
that test was throwing a ValueError. Fix it to use p >= 1.

mjo/cone/rearrangement.py

index 76b0dadf4f5ddc791c0cb6d95e5db9d811ac78b0..fd792c4b481351a37ab3a0d73227120109de1dc1 100644 (file)
@@ -69,7 +69,7 @@ def rearrangement_cone(p,n):
 
         sage: all( rearrangement_cone(p,n).is_proper()
         ....:              for n in xrange(10)
-        ....:              for p in xrange(n) )
+        ....:              for p in xrange(1, n) )
         True
 
     The Lyapunov rank of the rearrangement cone of order ``p`` in ``n``