From 41ce22703a7948acd99917ce655e321025836858 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 4 Jun 2015 12:52:22 -0400 Subject: [PATCH] Switch existing tests to use the lineality() method. --- mjo/cone/cone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.44.2