Skip to content

Commit 3d2f8f2

Browse files
committed
bug: fixes #240
1 parent 04524d0 commit 3d2f8f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyproximal/optimization/primal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,9 @@ def GeneralizedProximalGradient(
888888
)
889889
msg = "%6g %12.5e %10.3e %10.3e %10.3e" % (
890890
iiter + 1,
891-
x[0] if x.ndim == 1 else x[0, 0],
891+
np.real(to_numpy(x[0]))
892+
if x.ndim == 1
893+
else np.real(to_numpy(x[0, 0])),
892894
pf,
893895
pg,
894896
pf + pg,

0 commit comments

Comments
 (0)