From cb98aac649a8c437c4613d63d9887f010fe935c6 Mon Sep 17 00:00:00 2001 From: Josua Grawitter Date: Thu, 28 Jan 2021 13:24:11 +0100 Subject: [PATCH] FIX(nufft): Impossible type restriction for nufft2 It was impossible to run nufft2 because the input has to be real and complex at the same time. --- src/nufft.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nufft.jl b/src/nufft.jl index faef09f7..47b8d9b7 100644 --- a/src/nufft.jl +++ b/src/nufft.jl @@ -130,7 +130,7 @@ function mul_col_J!(F::Matrix{T}, P::NUFFTPlan{1,T}, C::Matrix{T}, J::Int) where F end -function mul!(f::AbstractVector{T}, P::NUFFTPlan{2,T}, c::AbstractVector{T}) where {T} +function mul!(f::AbstractVector{T}, P::NUFFTPlan{2,T}, c::AbstractVector{S}) where {T, S} U, V, p, t, temp, temp2, Ones = P.U, P.V, P.p, P.t, P.temp, P.temp2, P.Ones broadcast!(*, temp, c, V)