Skip to content

Commit

Permalink
separate mul! and ctmul! function calls out of op constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjaffray committed Jul 11, 2023
1 parent 397e69f commit 58b2698
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions MRIOperators/src/FieldmapNFFTOp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,13 @@ function Base.copy(S::FieldmapNFFTOp{T,Nothing,Function,D}) where {T,D}
D_ = length(shape)
circTraj = S.circTraj

mul! = (res,x) -> produ!(res,x,x_tmp,shape,plans,idx,cparam,circTraj,d,p)
ctmul! = (res,y) -> ctprodu!(res,y,y_tmp,shape,plans,idx,cparam,circTraj,d,p)

return FieldmapNFFTOp{T,Nothing,Function,D_}(S.nrow, S.ncol, false, false
, (res,x) -> produ!(res,x,x_tmp,shape,plans,idx,cparam,circTraj,d,p)
, mul!
, nothing
, (res,y) -> ctprodu!(res,y,y_tmp,shape,plans,idx,cparam,circTraj,d,p), 0, 0, 0, false, false, false, Complex{T}[], Complex{T}[]
, ctmul!, 0, 0, 0, false, false, false, Complex{T}[], Complex{T}[]
, plans, idx, circTraj, shape, cparam)
end

Expand Down

0 comments on commit 58b2698

Please sign in to comment.