Skip to content

Commit

Permalink
cosmit 2
Browse files Browse the repository at this point in the history
  • Loading branch information
PABannier committed Oct 29, 2023
1 parent 781a67e commit cf5d2b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions skglm/utils/prox_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,9 @@ def _log_sum_prox_val(x, z, alpha, eps):
@njit
def _r(x, alpha, eps):
"""r as defined in Prater-Bennette et al. (2021)."""
return (_log_sum_prox_val(_root_prox_log_vec(x, alpha, eps), x, alpha, eps)
- _log_sum_prox_val(0, x, alpha, eps))
r_z = _log_sum_prox_val(_root_prox_log_vec(x, alpha, eps), x, alpha, eps)
r_0 = _log_sum_prox_val(0, x, alpha, eps)
return r_z - r_0


@njit
Expand Down

0 comments on commit cf5d2b6

Please sign in to comment.