Skip to content

Commit 9ff858b

Browse files
authored
Merge pull request #24 from sumezulike/bugfix-23
Fix USVPPredEnum float coercion bug (#23)
2 parents d8c5baa + f935264 commit 9ff858b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

usvp.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ def callbackf(v):
183183
solutions = enum_obj.enumerate(0, M.d, squared_target_norm / 2**ph, ph, pruning=coeffs)
184184
_, v = solutions[0]
185185
found = True
186-
solution = tuple([int(v_) for v_ in M.B.multiply_left(v)])
186+
v = tuple(round(v_) for v_ in v)
187+
solution = tuple(v_ for v_ in M.B.multiply_left(v))
187188
break
188189
except EnumerationError:
189190
pass

0 commit comments

Comments
 (0)