Changeset 4903 for trunk/GSASIImath.py
- Timestamp:
- May 17, 2021 11:23:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIImath.py
r4840 r4903 263 263 Amatlam = Amat*(1.+np.eye(Amat.shape[0])*lam) 264 264 try: 265 Nzeros = 1 265 266 Ainv,Nzeros = pinv(Amatlam,xtol) # Moore-Penrose SVD inversion 266 267 except nl.LinAlgError: … … 412 413 psing = list(np.where(np.abs(np.diag(nl.qr(Amat)[1])) < 1.e-14)[0]) 413 414 if not len(psing): # make sure at least the worst term is flagged 415 d = np.abs(np.diag(nl.qr(Amat)[1])) 414 416 psing = [np.argmin(d)] 415 417 Amat, indices, Yvec = dropTerms(psing, Amat, indices, Yvec)
Note: See TracChangeset
for help on using the changeset viewer.