Skip to content

Commit d467f29

Browse files
committed
Remove symmetrize keyword (also had no effect previously)
1 parent 84fef94 commit d467f29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/testOperators.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function testNFFT2d(N=16;arrayType = Array)
218218
# Operator
219219
xop = arrayType(vec(x))
220220
nodes = [(idx[d] - N÷2 - 1)./N for d=1:2, idx in vec(CartesianIndices((N,N)))]
221-
F_nfft = NFFTOp(ComplexF64; shape=(N,N), nodes, symmetrize=false, S = typeof(xop))
221+
F_nfft = NFFTOp(ComplexF64; shape=(N,N), nodes, S = typeof(xop))
222222

223223
# test against FourierOperators
224224
y = vec( ifftshift(reshape(F*vec(fftshift(x)),N,N)) )
@@ -249,7 +249,7 @@ function testNFFT2d(N=16;arrayType = Array)
249249
# test type stability;
250250
# TODO: Ensure type stability for Trajectory objects and test here
251251
nodes = Float32.(nodes)
252-
F_nfft = NFFTOp(ComplexF32; shape=(N,N), nodes, symmetrize=false, S = typeof(ComplexF32.(xop)))
252+
F_nfft = NFFTOp(ComplexF32; shape=(N,N), nodes, S = typeof(ComplexF32.(xop)))
253253

254254
y_nfft = F_nfft * ComplexF32.(xop)
255255
y_adj_nfft = adjoint(F_nfft) * ComplexF32.(xop)
@@ -273,7 +273,7 @@ function testNFFT3d(N=12;arrayType = Array)
273273
# Operator
274274
xop = arrayType(vec(x))
275275
nodes = [(idx[d] - N÷2 - 1)./N for d=1:3, idx in vec(CartesianIndices((N,N,N)))]
276-
F_nfft = NFFTOp(ComplexF64; shape=(N,N,N), nodes=nodes, symmetrize=false, S = typeof(xop))
276+
F_nfft = NFFTOp(ComplexF64; shape=(N,N,N), nodes=nodes, S = typeof(xop))
277277

278278
# test agains FourierOperators
279279
y = vec( ifftshift(reshape(F*vec(fftshift(x)),N,N,N)) )

0 commit comments

Comments
 (0)