From 57a2d59217485fc036d4f70fe44561a7d28396a7 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 7 Jun 2024 16:30:50 +0200 Subject: Fix bug in LogDet canon --- sumofsquares/canon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sumofsquares/canon.py b/sumofsquares/canon.py index 45d6c06..8186f59 100644 --- a/sumofsquares/canon.py +++ b/sumofsquares/canon.py @@ -269,7 +269,7 @@ class LogDet(Canonicalization): n = A.shape[0] u = opt_variable_from_name('u_logdet', shape=(n, 1)) - m = poly.v_stack((n * (n + 1) / 2, 1)) # FIXME: cannot do // + m = poly.v_stack((n * (n + 1) / 2, 1)) Z = poly.lower_triangular(opt_variable_from_name('Z_logdet', shape=m)) Q = poly.concatenate(((A, Z), (Z.T, Z.diag()))) -- cgit v1.2.1