Sketch.solve(): explicitly initialize vars to 0.0
This commit is contained in:
parent
bf46f9ec4b
commit
c6b5d09669
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user