Skip to content

Commit

Permalink
Fix finite difference linop
Browse files Browse the repository at this point in the history
  • Loading branch information
frankong committed Aug 25, 2019
1 parent 593656f commit 8e290b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sigpy/linop.py
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ def FiniteDifference(ishape, axes=None):
axes = util._normalize_axes(axes, len(ishape))
ndim = len(ishape)
linops = []
for i in range(ndim):
for i in axes:
D = I - Circshift(ishape, [0] * i + [1] + [0] * (ndim - i - 1))
R = Reshape([1] + list(ishape), ishape)
linops.append(R * D)
Expand Down

0 comments on commit 8e290b8

Please sign in to comment.