Skip to content

Commit 3a27486

Browse files
authored
Merge pull request #591 from mrava87/dev
bug: fix shape of x0 in RegularizedInversion
2 parents dfc95fa + bce58c1 commit 3a27486

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)