From d565d2aae529c9b744dd783aadf283c1f44b5609 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Fri, 7 Jun 2024 11:23:18 +0200 Subject: Fix typos / bugs --- sumofsquares/canon.py | 2 +- sumofsquares/problems.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sumofsquares/canon.py b/sumofsquares/canon.py index 9ba0639..45d6c06 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)) + m = poly.v_stack((n * (n + 1) / 2, 1)) # FIXME: cannot do // Z = poly.lower_triangular(opt_variable_from_name('Z_logdet', shape=m)) Q = poly.concatenate(((A, Z), (Z.T, Z.diag()))) diff --git a/sumofsquares/problems.py b/sumofsquares/problems.py index 8f904c5..cd182df 100644 --- a/sumofsquares/problems.py +++ b/sumofsquares/problems.py @@ -394,7 +394,7 @@ class InternalSOSProblem(Problem): elif isinstance(c, ExponentialCone): # Interpret row-wise - dims["ep"].extend(tuple(1 for _ in range(nrows))) + dims["e"].extend(tuple(1 for _ in range(nrows))) for i in range(nrows): constraints["e"].append(( tuple(m[i, :] for m in linear), -- cgit v1.2.1