diff options
Diffstat (limited to '')
-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 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()))) |