]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
Add LL_cone() convenience function.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 8 Aug 2016 00:21:58 +0000 (20:21 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 8 Aug 2016 00:21:58 +0000 (20:21 -0400)
mjo/cone/cone.py

index 3b3a02814ea099a859f29ce86a40c7344c33b4cc..0bfc3b6a779147b0f0a30799bfe2c149cb818169 100644 (file)
@@ -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)