Commit dfe189a
committed
Match data types when creating array of zeros
In function `get_tensors_from_integrals`, the call to `numpy.zeros`
didn't supply data type information. This resulted in the type
defaulting to a float type, which then led to warnings about losing
precision in the multiplications later in the method. The solution is to
match the types of the values in the call to `zeros` to the types of
other arrays.1 parent 4e2d4fd commit dfe189a
1 file changed
Lines changed: 4 additions & 2 deletions
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
| |||
0 commit comments