]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
Switch existing tests to use the lineality() method.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 4 Jun 2015 16:52:22 +0000 (12:52 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 4 Jun 2015 16:52:22 +0000 (12:52 -0400)
mjo/cone/cone.py

index d77793550aa44f02ea7047e2049b852b40db936f..a4e327248fd47bf700dd698b63e426f16f47037c 100644 (file)
@@ -493,7 +493,7 @@ def lyapunov_rank(K):
         sage: actual = lyapunov_rank(K)
         sage: K_S = project_span(K)
         sage: P = project_span(K_S.dual()).dual()
-        sage: l = K.linear_subspace().dimension()
+        sage: l = lineality(K)
         sage: codim = K.lattice_dim() - K.dim()
         sage: expected = lyapunov_rank(P) + K.dim()*(l + codim) + codim**2
         sage: actual == expected
@@ -510,7 +510,7 @@ def lyapunov_rank(K):
 
     m = K.dim()
     n = K.lattice_dim()
-    l = K.linear_subspace().dimension()
+    l = lineality(K)
 
     if m < n:
         # K is not solid, project onto its span.