summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sumofsquares/canon.py2
-rw-r--r--sumofsquares/problems.py2
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),