From: Michael Orlitzky Date: Thu, 4 Jun 2015 16:52:22 +0000 (-0400) Subject: Switch existing tests to use the lineality() method. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=41ce22703a7948acd99917ce655e321025836858;hp=e1d68e35bb9d1408fe1ed74e15afde23b57e55fc;p=sage.d.git Switch existing tests to use the lineality() method. --- diff --git a/mjo/cone/cone.py b/mjo/cone/cone.py index d777935..a4e3272 100644 --- a/mjo/cone/cone.py +++ b/mjo/cone/cone.py @@ -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.