]> gitweb.michael.orlitzky.com - dunshire.git/commitdiff
Rename a variable to make pylint happy.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 6 Oct 2016 18:54:30 +0000 (14:54 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 6 Oct 2016 18:54:30 +0000 (14:54 -0400)
src/dunshire/matrices.py

index 5acc7a876e417beafd259d416f59fc283c1c5f67..0d97c0cbc4e83dfc95231a2306b870fb7b93a5db 100644 (file)
@@ -55,9 +55,9 @@ def eigenvalues(real_matrix):
 
     """
     domain_dim = real_matrix.size[0] # Assume ``real_matrix`` is square.
-    W = matrix(0, (domain_dim, 1), tc='d')
-    syev(real_matrix, W)
-    return list(W)
+    eigs = matrix(0, (domain_dim, 1), tc='d')
+    syev(real_matrix, eigs)
+    return list(eigs)
 
 
 def identity(domain_dim):