File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,16 @@ using FastTransforms, Base.Test
7474 ω = collect (0.0 : n- 1 )
7575 x = ω/ n
7676 fftc = fft (c)
77- @test norm (nufft1 (c, ω, ϵ) - fftc) == 0
78- @test norm (nufft2 (c, x, ϵ) - fftc) == 0
79- @test norm (nufft3 (c, x, ω, ϵ) - fftc) == 0
77+ if Base. Sys. WORD_SIZE == 64
78+ @test norm (nufft1 (c, ω, ϵ) - fftc) == 0
79+ @test norm (nufft2 (c, x, ϵ) - fftc) == 0
80+ @test norm (nufft3 (c, x, ω, ϵ) - fftc) == 0
81+ else
82+ err_bnd = 500 * eps (Float64)* norm (c)
83+ @test norm (nufft1 (c, ω, ϵ) - fftc) < err_bnd
84+ @test norm (nufft2 (c, x, ϵ) - fftc) < err_bnd
85+ @test norm (nufft3 (c, x, ω, ϵ) - fftc) < err_bnd
86+ end
8087 end
8188
8289 function nudft1 {T<:AbstractFloat} (C:: Matrix{Complex{T}} , ω1:: AbstractVector{T} , ω2:: AbstractVector{T} )
You can’t perform that action at this time.
0 commit comments