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 10, 2023
1 parent ea0ed0e commit d44bfb4
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[0, 0, 0, 0] = (2.0 * np.pi) ** 2.0 / np.prod(
self.weight[coor[0:1]] = (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 d44bfb4

Please sign in to comment.