cr.sparse.cvx.spgl1.SPGL1BPState¶
- class cr.sparse.cvx.spgl1.SPGL1BPState(x: jax.Array, g: jax.Array, r: jax.Array, f_past: jax.Array, tau: float, tau_changed: bool, r_norm: float, r_gap: float, r_res_error: float, r_f_error: float, alpha: float, alpha_next: float, iterations: int, n_times: int, n_trans: int, n_newton: int, n_ls_iters: int)[source]¶
Solution state of the SPGL1 algorithm for BPIC problem
- __init__()¶
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__()Initialize self.
count(value, /)Return number of occurrences of value.
index(value[, start, stop])Return first index of value.
Attributes
alphaStep size in the current iteration
alpha_nextStep size for the next iteration
f_pastPast function values
gGradient vector
iterationsAlias for field number 12
n_ls_itersNumber of line search iterations in the current iteration
n_newtonNumber of newton steps
n_timesNumber of multiplications with A
n_transNumber of multiplications with A^T
rresidual vector
r_f_errorRelative error of objective value from sigma^2/2
r_gapRelative duality gap
r_normResidual norm
r_res_errorRelative error of residual norm from sigma
tauThe limit on the l1-norm
tau_changedFlag indicating if tau was changed
xSolution vector