JuliaMath / NFFT.jl

Julia implementation of the Non-equidistant Fast Fourier Transform (NFFT)
Other
153 stars 28 forks source link

facing issue using NFFT #127

Closed rkumar-slim closed 11 months ago

rkumar-slim commented 11 months ago

Hello, I am using julia v"1.5.2" and when I run

using NFFT

J, N = 8, 16 k = range(-0.4, stop=0.4, length=J) # nodes at which the NFFT is evaluated f = randn(ComplexF64, J) # data to be transformed p = plan_nfft(k, N, reltol=1e-9) # create plan fHat = adjoint(p) f # calculate adjoint NFFT y = p fHat

I get the following error:

ERROR: MethodError: no method matching plan_fft!(::Array{Complex{Float64},1}, ::UnitRange{Int64}; reltol=1.0e-9)

any help is highly appreciated

JeffFessler commented 11 months ago

The compat entry says Julia 1.6: https://github.com/JuliaMath/NFFT.jl/blob/master/Project.toml so I'd recommend upgrading to a newer version of Julia! 1.9 is so much faster...

tknopp commented 11 months ago

Yes, the documentation refers to the current release. When using an older Julia release, it will in-turn install an old version of this package. Best is to install at least Julia 1.6.