File tree 4 files changed +14
-1
lines changed
4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
[deps ]
2
+ AbstractFFTs = " 621f4979-c628-5d54-868e-fcf4e3e8185c"
2
3
Documenter = " e30172f5-a6a5-5a46-863b-614d45cd2de4"
3
4
4
5
[compat ]
Original file line number Diff line number Diff line change @@ -26,4 +26,5 @@ AbstractFFTs.ifftshift
26
26
AbstractFFTs.ifftshift!
27
27
AbstractFFTs.fftfreq
28
28
AbstractFFTs.rfftfreq
29
+ AbstractFFTs.TestUtils.test_fft_backend
29
30
```
Original file line number Diff line number Diff line change @@ -11,6 +11,16 @@ using LinearAlgebra
11
11
using Test
12
12
13
13
"""
14
+ test_fft_backend(array_constructor)
15
+
16
+ Run tests to verify correctness of all FFT functions based on a particular
17
+ backend plan implementation. The backend implementation is assumed to be loaded
18
+ prior to calling this function.
19
+
20
+ The input `array_constructor` determines the `AbstractArray` implementation for
21
+ which the correctness tests are run. It is assumed to be a callable object that
22
+ takes in input arrays of type `Array` and return arrays of the desired type for
23
+ testing: this would most commonly be a constructor such as `Array` or `CuArray`.
14
24
"""
15
25
function test_fft_backend (array_constructor)
16
26
@testset " fft correctness" begin
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ Random.seed!(1234)
9
9
10
10
include (" TestPlans.jl" )
11
11
12
+ # Run tests for FFT plans (and the operations in AbstractFFTs that derive from them)
12
13
using . TestPlans
13
- test_fft_backend (Array) # Tests for FFT plans (and operations in AbstractFFTs that derive from them)
14
+ test_fft_backend (Array)
14
15
15
16
@testset " rfft sizes" begin
16
17
A = rand (11 , 10 )
You can’t perform that action at this time.
0 commit comments