File tree Expand file tree Collapse file tree 4 files changed +14
-1
lines changed Expand file tree Collapse file tree 4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 11[deps ]
2+ AbstractFFTs = " 621f4979-c628-5d54-868e-fcf4e3e8185c"
23Documenter = " e30172f5-a6a5-5a46-863b-614d45cd2de4"
34
45[compat ]
Original file line number Diff line number Diff line change @@ -26,4 +26,5 @@ AbstractFFTs.ifftshift
2626AbstractFFTs.ifftshift!
2727AbstractFFTs.fftfreq
2828AbstractFFTs.rfftfreq
29+ AbstractFFTs.TestUtils.test_fft_backend
2930```
Original file line number Diff line number Diff line change @@ -11,6 +11,16 @@ using LinearAlgebra
1111using Test
1212
1313"""
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`.
1424"""
1525function test_fft_backend (array_constructor)
1626 @testset " fft correctness" begin
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ Random.seed!(1234)
99
1010include (" TestPlans.jl" )
1111
12+ # Run tests for FFT plans (and the operations in AbstractFFTs that derive from them)
1213using . TestPlans
13- test_fft_backend (Array) # Tests for FFT plans (and operations in AbstractFFTs that derive from them)
14+ test_fft_backend (Array)
1415
1516@testset " rfft sizes" begin
1617 A = rand (11 , 10 )
You can’t perform that action at this time.
0 commit comments