Skip to content

Commit

Permalink
Change float to double
Browse files Browse the repository at this point in the history
  • Loading branch information
FeGeyer committed Jun 12, 2024
1 parent f606859 commit 8afec94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvisgen/simulation/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def jinc(x):
array
value of jinc function at x
"""
jinc = torch.ones(x.shape, device=x.device).float()
jinc = torch.ones(x.shape, device=x.device).double()
jinc[x != 0] = 2 * bessel_j1(x[x != 0]) / x[x != 0]
return jinc

Expand Down

0 comments on commit 8afec94

Please sign in to comment.