From: Michael Orlitzky Date: Sun, 4 Nov 2018 06:12:22 +0000 (-0500) Subject: matrix_vector.py: use xrange everywhere. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=95449248be0816ee707a1669c65abc3faeb9d3b8;p=sage.d.git matrix_vector.py: use xrange everywhere. --- diff --git a/mjo/matrix_vector.py b/mjo/matrix_vector.py index 055e4aa..2a0e9e8 100644 --- a/mjo/matrix_vector.py +++ b/mjo/matrix_vector.py @@ -33,7 +33,7 @@ def isomorphism(matrix_space): sage: M = MatrixSpace(QQ,4,4) sage: (p, p_inv) = isomorphism(M) - sage: m = M(range(0,16)) + sage: m = M(xrange(16)) sage: p_inv(p(m)) == m True @@ -148,8 +148,8 @@ def matrix_of_transformation(T, V): return L(x) entries = [] - for j in range(0,n): - for i in range(0,n): + for j in xrange(n): + for i in xrange(n): entry = inner_product(apply(T,B[i]), B[j]) entries.append(entry)