File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ using CUDA, CuNFFT
2
+
3
+ arrayTypes = [CuArray]
4
+
5
+ include (joinpath (@__DIR__ (), " .." , " runtests.jl" ))
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ using NFFT
8
8
using RadonKA
9
9
using JLArrays
10
10
11
- arrayTypes = [Array, JLArray]
11
+ areTypesDefined = @isdefined arrayTypes
12
+ arrayTypes = areTypesDefined ? arrayTypes : [Array, JLArray]
12
13
13
14
@testset " LinearOperatorCollection" begin
14
15
include (" testNormalOp.jl" )
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ function testNFFT2d(N=16;arrayType = Array)
234
234
F_nfft. toeplitz = false
235
235
AHA = normalOperator (F_nfft)
236
236
y_AHA_nfft = Array (AHA * xop)
237
- y_AHA = F' * F * xop
237
+ y_AHA = F' * F * vec (x)
238
238
@test y_AHA ≈ y_AHA_nfft rtol = 1e-2
239
239
240
240
# test AHA with Toeplitz
You can’t perform that action at this time.
0 commit comments