Skip to content

Commit 7cda835

Browse files
committed
updates NFCT and NFFCt accuracy
1 parent c6c5fb5 commit 7cda835

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "GroupedTransforms"
22
uuid = "76248ec8-aa36-4347-850f-ece2d673bc9f"
33
authors = ["Michael Schmischke <[email protected]> and Felix Bartel <[email protected]>"]
4-
version = "1.1.1"
4+
version = "1.1.2"
55

66
[deps]
77
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"

src/NFCTtools.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function get_transform(bandwidths::Vector{Int}, X::Array{Float64})::Int64
118118

119119
mask = nfct_mask(bandwidths)
120120

121-
plan = NFCT(Tuple(bandwidths), M)
121+
plan = NFCT(Tuple(bandwidths), M, Tuple(2 * collect(bandwidths)), 5)
122122
plan.x = X
123123
factor_sqrt = sqrt(2)^d
124124

src/NFFTtools.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function get_transform(bandwidths::Vector{Int}, X::Array{Float64})::Int64
118118

119119
mask = nfft_mask(bandwidths)
120120
N = Tuple(bandwidths)
121-
plan = NFFT(N, M, Tuple(2 * collect(N)), 6)
121+
plan = NFFT(N, M, Tuple(2 * collect(N)), 5)
122122
plan.x = X
123123

124124
function trafo(fhat::Vector{ComplexF64})::Vector{ComplexF64}

test/nfct_U.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ f_direct = F_direct * vec(fhat)
5151
# compare results ####################################################
5252

5353
error = norm(f - f_direct)
54-
@test error < 1e-8
54+
@test error < 1e-5
5555

5656
# generate random function values ####################################
5757

@@ -68,4 +68,4 @@ fhat_direct = F_direct' * y
6868
# compare results ####################################################
6969

7070
error = norm(vec(fhat) - fhat_direct)
71-
@test error < 1e-8
71+
@test error < 1e-5

test/nfct_ds.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ f_direct = F_direct * vec(fhat)
4949
# compare results ####################################################
5050

5151
error = norm(f - f_direct)
52-
@test error < 1e-8
52+
@test error < 1e-5
5353

5454
# generate random function values ####################################
5555

@@ -66,4 +66,4 @@ fhat_direct = F_direct' * y
6666
# compare results ####################################################
6767

6868
error = norm(vec(fhat) - fhat_direct)
69-
@test error < 1e-8
69+
@test error < 1e-5

0 commit comments

Comments
 (0)