Skip to content

Commit bce58c1

Browse files
committed
bug: fix shape of x0 in RegularizedInversion
1 parent dfc95fa commit bce58c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylops/optimization/cls_leastsquares.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ def run(
593593
xinv, istop, itn, r1norm, r2norm = cgls(
594594
self.RegOp,
595595
self.datatot,
596-
self.ncp.zeros(self.RegOp.dims, dtype=self.RegOp.dtype),
596+
self.ncp.zeros(self.RegOp.shape[1], dtype=self.RegOp.dtype),
597597
**kwargs_solver,
598598
)[0:5]
599599
else:

0 commit comments

Comments
 (0)