diff options
author | Nao Pross <np@0hm.ch> | 2024-06-07 11:23:18 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-06-07 11:23:18 +0200 |
commit | d565d2aae529c9b744dd783aadf283c1f44b5609 (patch) | |
tree | 058731a89cdc79c21f70e4673dad6201bc9b8618 | |
parent | Delete class OptVariableExprMixin made obsolete by new Symbol in polymatrix (diff) | |
download | sumofsquares-d565d2aae529c9b744dd783aadf283c1f44b5609.tar.gz sumofsquares-d565d2aae529c9b744dd783aadf283c1f44b5609.zip |
Fix typos / bugs
Diffstat (limited to '')
-rw-r--r-- | sumofsquares/canon.py | 2 | ||||
-rw-r--r-- | 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), |