From 6251a6e0461374bf915ec3695f62cb0349f379ae Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 7 Aug 2016 20:21:58 -0400 Subject: [PATCH] Add LL_cone() convenience function. --- mjo/cone/cone.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.44.2