From 42507e34b73c6969ad138c8cf2093caaa08bc121 Mon Sep 17 00:00:00 2001 From: AdriaJ <43072455+AdriaJ@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:12:07 +0200 Subject: [PATCH] [Doc][BugFix] Do not slice returned array in solvers examples. (#60) (cherry picked from commit 59ef896b11012817f64c2d92a926b94544b706ee) --- src/pyxu/opt/solver/pds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyxu/opt/solver/pds.py b/src/pyxu/opt/solver/pds.py index 31e6843d1..13decefc4 100644 --- a/src/pyxu/opt/solver/pds.py +++ b/src/pyxu/opt/solver/pds.py @@ -415,7 +415,7 @@ class CondatVu(_PrimalDualSplitting): cv = CV(f=F, g=0.01 * pxo.L1Norm(N), h=0.1 * pxo.L1Norm(N), K=D) x0, z0 = np.zeros((2, N)) cv.fit(x0=x0, z0=z0) - x_recons = cv.solution()[0] + x_recons = cv.solution() plt.figure() plt.stem(x, linefmt="C0-", markerfmt="C0o") @@ -727,7 +727,7 @@ class PD3O(_PrimalDualSplitting): pd3o = PD3O(f=F, g=0.01 * pxo.L1Norm(N), h=0.1 * pxo.L1Norm(N), K=D) x0, z0 = np.zeros((2, N)) pd3o.fit(x0=x0, z0=z0) - x_recons = pd3o.solution()[0] + x_recons = pd3o.solution() plt.figure() plt.stem(x, linefmt="C0-", markerfmt="C0o")