Skip to content

Commit 315b9ae

Browse files
committed
Add docstring
1 parent 58eb6e6 commit 315b9ae

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

docs/Project.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
23
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
34

45
[compat]

docs/src/api.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ AbstractFFTs.ifftshift
2626
AbstractFFTs.ifftshift!
2727
AbstractFFTs.fftfreq
2828
AbstractFFTs.rfftfreq
29+
AbstractFFTs.TestUtils.test_fft_backend
2930
```

src/TestUtils.jl

+10
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ using LinearAlgebra
1111
using 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
"""
1525
function test_fft_backend(array_constructor)
1626
@testset "fft correctness" begin

test/runtests.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ Random.seed!(1234)
99

1010
include("TestPlans.jl")
1111

12+
# Run tests for FFT plans (and the operations in AbstractFFTs that derive from them)
1213
using .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)

0 commit comments

Comments
 (0)