Changeset 4688


Ignore:
Timestamp:
Dec 30, 2020 2:11:42 PM (9 months ago)
Author:
toby
Message:

correct setting of singular vars in old HessianLSQ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r4671 r4688  
    176176        Yvec,Amat = Hess(x0,*args)
    177177        Adiag = np.sqrt(np.diag(Amat))
    178         psing = np.where(np.abs(Adiag) < 1.e-14,True,False)
     178        #psing = np.where(np.abs(Adiag) < 1.e-14,True,False)
     179        psing = np.where(np.abs(Adiag) < 1.e-14)[0]
    179180        if np.any(psing):                #hard singularity in matrix
    180181            return [x0,None,{'num cyc':icycle,'fvec':M,'nfev':nfev,'lamMax':lamMax,'psing':psing,'SVD0':-1}]
Note: See TracChangeset for help on using the changeset viewer.