From fcffa9c76014ffe78364e97cf5830644994b8aa9 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 29 Mar 2011 19:16:24 -0400 Subject: [PATCH] make C square --- Sketch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sketch.py b/Sketch.py index f4c1310..cc7b46a 100644 --- a/Sketch.py +++ b/Sketch.py @@ -29,8 +29,9 @@ class Sketch(object): shape_vars[shape_var] = varid varid += 1 varid_to_shape_var.append(shape_var) - C = zeros((len(equations), len(shape_vars))) - d = zeros(len(equations)) + dim = max(len(equations), len(shape_vars)) + C = zeros((dim, dim)) + d = zeros(dim) for i in range(len(equations)): e = equations[i] coeffs = e[0]