Sketch.solve(): explicitly initialize vars to 0.0

This commit is contained in:
Josh Holtrop 2011-03-29 17:10:12 -04:00
parent bf46f9ec4b
commit c6b5d09669

View File

@ -30,6 +30,10 @@ class Sketch(object):
varid_to_shape_var.append(shape_var)
C = empty((len(equations), len(shape_vars)))
d = empty(len(equations))
for row in range(len(equations)):
for col in range(len(shape_vars)):
C[row][col] = 0.0
d[row] = 0.0
for i in range(len(equations)):
e = equations[i]
coeffs = e[0]