From: Michael Orlitzky Date: Mon, 8 Aug 2016 00:21:58 +0000 (-0400) Subject: Add LL_cone() convenience function. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=6251a6e0461374bf915ec3695f62cb0349f379ae;hp=ef21e03efdad7f813b15fbcf2f53fccae3c81083;p=sage.d.git Add LL_cone() convenience function. --- diff --git a/mjo/cone/cone.py b/mjo/cone/cone.py index 3b3a028..0bfc3b6 100644 --- a/mjo/cone/cone.py +++ b/mjo/cone/cone.py @@ -684,6 +684,11 @@ def Z_operator_gens(K): return [ -M(v.list()) for v in Sigma_cone ] +def LL_cone(K): + gens = K.lyapunov_like_basis() + L = ToricLattice(K.lattice_dim()**2) + return Cone([ g.list() for g in gens ], lattice=L, check=False) + def Z_cone(K): gens = Z_operator_gens(K) L = ToricLattice(K.lattice_dim()**2)