]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/cone/doubly_nonnegative.py
mjo: replace xrange() with range() for python-3.x compatibility.
[sage.d.git] / mjo / cone / doubly_nonnegative.py
index a30a827d158f3b99d7d9df5d295096e7cc349e0f..43a2f61c5e3fa858098175e8c9e37c08acc11e45 100644 (file)
@@ -371,8 +371,8 @@ def is_extreme_doubly_nonnegative(A):
     # whenever we come across an index pair `$(i,j)$` with
     # `$A_{ij} = 0$`.
     spanning_set = []
-    for j in xrange(A.ncols()):
-        for i in xrange(j):
+    for j in range(A.ncols()):
+        for i in range(j):
             if A[i,j] == 0:
                 M = A.matrix_space()
                 S = X.transpose() * (stdE(M,i,j) + stdE(M,j,i)) * X