Commit 742af86
committed
Avoid round-off errors on U-matrix diagonal.
Diagonal elements of Lattice.isotropicunit should be exactly 1.
Matrix multiplication could introduce slight round-off errors.
This had caused inexact assignments of U_ii for isotropic matrices.1 parent 0ada820 commit 742af86
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
200 | 204 | | |
201 | 205 | | |
202 | 206 | | |
| |||
0 commit comments