Skip to content

Commit

Permalink
Fix Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeziere committed Jul 21, 2024
1 parent baf0c9c commit 867932a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file removed docs/src/.use.md.swp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct Shrink{T} <: Operator
plan::T

function Shrink(threshold, sigma, state)
s = size(state.recipSpace)
s = size(state.realSpace)
kernel = zeros(ComplexF64, s)
for i in 1:s[1]
for j in 1:s[2]
Expand Down
1 change: 1 addition & 0 deletions src/State.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ struct State{T}
shift .= [1,1,1] .- round.(Int64, mapreduce(sqrt, +, intens))
shift .*= -1
intens = CuArray{Float64, 3, CUDA.Mem.DeviceBuffer}(circshift(intens,shift))
recSupport = CuArray{Float64, 3, CUDA.Mem.DeviceBuffer}(circshift(recSupport,shift))

realSpace = CUDA.zeros(ComplexF64, s)
state = BcdiCore.TradState("L2", false, realSpace, intens, recSupport)
Expand Down

0 comments on commit 867932a

Please sign in to comment.