Skip to content

Commit

Permalink
fix inverse_phat_square
Browse files Browse the repository at this point in the history
  • Loading branch information
gnrraphi committed Dec 11, 2023
1 parent d44bfb4 commit 3f122d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gpt/algorithms/optimize/fourier_accelerate.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, grid, base, dimensions=None):
self.weight += c_mu_l

# special consideration for zero
self.weight[coor[0:1]] = (2.0 * np.pi) ** 2.0 / np.prod(
self.weight[[[0] * grid.nd]] = (2.0 * np.pi) ** 2.0 / np.prod(
[grid.gdimensions[mu] for mu in dimensions]
) ** (2.0 / len(dimensions))

Expand Down

0 comments on commit 3f122d6

Please sign in to comment.