Skip to content

Commit

Permalink
Update qeq.py
Browse files Browse the repository at this point in the history
  • Loading branch information
WangXinyan940 committed Oct 22, 2023
1 parent 4aa5b77 commit 6134176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dmff/admp/qeq.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def E_constP(q, lagmt, const_list, const_vals):
@jit_condition()
def mask_to_zero(v, mask):
return jnp.piecewise(
v, [mask < 1e-5, mask >= 1e-5], [lambda x: CONST_0, lambda x: v]
v, [mask < 1e-4, mask >= 1e-4], [lambda x: CONST_0, lambda x: v]
)


Expand Down

0 comments on commit 6134176

Please sign in to comment.