diff options
author | Nao Pross <np@0hm.ch> | 2024-06-07 16:30:50 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-06-07 16:30:50 +0200 |
commit | 57a2d59217485fc036d4f70fe44561a7d28396a7 (patch) | |
tree | b3ee563db7cf81def19efe92e1455dd2b6927de5 | |
parent | Fix bug in elimination of constraints that disappear (diff) | |
download | sumofsquares-57a2d59217485fc036d4f70fe44561a7d28396a7.tar.gz sumofsquares-57a2d59217485fc036d4f70fe44561a7d28396a7.zip |
Fix bug in LogDet canon
-rw-r--r-- | sumofsquares/canon.py | 2 |
1 files changed, 1 insertions, 1 deletions
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()))) |