]> gitweb.michael.orlitzky.com - sage.d.git/commitdiff
Add another test for motzkin_decomposition().
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 11 Jan 2016 03:39:54 +0000 (22:39 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 11 Jan 2016 03:39:54 +0000 (22:39 -0500)
mjo/cone/cone.py

index adba809cf26722f52b0ec75432b2e6068683c3d9..05c55ba15a6e79dcfaa86f958a99dafed522b8fd 100644 (file)
@@ -135,6 +135,14 @@ def motzkin_decomposition(K):
         sage: S.lineality() == S.dim()
         True
 
+    A strictly convex cone should be equal to its strictly convex component::
+
+        sage: set_random_seed()
+        sage: K = random_cone(max_ambient_dim=8, strictly_convex=True)
+        sage: (P,_) = motzkin_decomposition(K)
+        sage: K.is_equivalent(P)
+        True
+
     The generators of the components are obtained from orthogonal
     projections of the original generators [Stoer-Witzgall]_::