Skip to content

Commit

Permalink
Merge pull request #155 from NLESC-JCER/issue154_int_norm_orb
Browse files Browse the repository at this point in the history
cast to int
  • Loading branch information
NicoRenaud authored Nov 11, 2023
2 parents 6915cb6 + 5cfaf74 commit 228b440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qmctorch/wavefunction/orbitals/norm_orbital.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def norm_slater_cartesian(a, b, c, n, exp):

lvals = a + b + c + n + 1.

lfact = torch.as_tensor([np.math.factorial(2 * i)
lfact = torch.as_tensor([np.math.factorial(int(2 * i))
for i in lvals]).type(torch.get_default_dtype())

prefact = 4 * np.pi * lfact / ((2 * exp)**(2 * lvals + 1))
Expand Down

0 comments on commit 228b440

Please sign in to comment.