Skip to content

Commit

Permalink
Merge pull request #591 from mrava87/dev
Browse files Browse the repository at this point in the history
bug: fix shape of x0 in RegularizedInversion
  • Loading branch information
mrava87 authored Jul 4, 2024
2 parents dfc95fa + bce58c1 commit 3a27486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylops/optimization/cls_leastsquares.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def run(
xinv, istop, itn, r1norm, r2norm = cgls(
self.RegOp,
self.datatot,
self.ncp.zeros(self.RegOp.dims, dtype=self.RegOp.dtype),
self.ncp.zeros(self.RegOp.shape[1], dtype=self.RegOp.dtype),
**kwargs_solver,
)[0:5]
else:
Expand Down

0 comments on commit 3a27486

Please sign in to comment.