Skip to content

Commit 283ea6b

Browse files
Merge pull request #7 from nlesc-dirac/linesearch_upgrade
update rcond
2 parents 826c935 + c73d65f commit 283ea6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lbfgsb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def _subspace_min(self,g,xc,c):
317317
v=torch.mm(self._M,torch.mm(WtZ,r))
318318
N=invtheta*torch.mm(WtZ,WtZ.transpose(0,1))
319319
N=torch.eye(2*self._m).to(self._device)-torch.mm(self._M,N)
320-
v,_,_,_=torch.linalg.lstsq(N,v,rcond=-1)
320+
v,_,_,_=torch.linalg.lstsq(N,v,rcond=None)
321321
du=-invtheta*r-invtheta*invtheta*torch.mm(WtZ.transpose(0,1),v)
322322

323323
alpha_star=self._find_alpha(xc,du,free_vars_index)

0 commit comments

Comments
 (0)