Skip to content

Commit

Permalink
replace the use of sqrtm to cholesky decomposition with a solve_trian…
Browse files Browse the repository at this point in the history
…gular

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
kirk0830 and coderabbitai[bot] authored Oct 10, 2024
1 parent b495c13 commit f84eb2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SIAB/spillage/lcao_wfc_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def _svdlz(C,
assert reinterp_view in ['decompose', 'reduce']

# orthogonalize the wave function coefficients
C = la.sqrtm(S) @ C
L = la.cholesky(S, lower=True)
C = la.solve_triangular(L, C, lower=True)

lmax = [len(nz) - 1 for nz in nzeta]
ntyp = len(natom)
Expand Down

0 comments on commit f84eb2a

Please sign in to comment.