Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
unalmis authored Dec 3, 2024
1 parent 4fe9a64 commit b6526f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desc/integrals/_interp_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def polyroot_vec(
and not (jnp.iscomplexobj(c) or jnp.iscomplexobj(k))
):
# Compute from analytic formula to avoid the issue of complex roots with small
# imaginary parts and to avoid nan in gradient.
# imaginary parts and to avoid nan in gradient. Also consumes less memory.
r = func[num_coef](C=c, sentinel=sentinel, eps=eps, distinct=distinct)
# We already filtered distinct roots for quadratics.
distinct = distinct and num_coef > 3
Expand Down

0 comments on commit b6526f9

Please sign in to comment.