Skip to content

Commit 7374046

Browse files
committed
Remove FFT interface.
1 parent 001fd1e commit 7374046

File tree

5 files changed

+1
-41
lines changed

5 files changed

+1
-41
lines changed

Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ Adapt = "2.0"
1616
julia = "1.5"
1717

1818
[extras]
19-
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
2019
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
2120
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2221

2322
[targets]
24-
test = ["Test", "FFTW", "FillArrays"]
23+
test = ["Test", "FillArrays"]

docs/src/testsuite.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ TestSuite.test_base(T) # basic functionality like launching a kernel on the GPU
4444
TestSuite.test_blas(T) # tests the blas interface
4545
TestSuite.test_broadcasting(T) # tests the broadcasting implementation
4646
TestSuite.test_construction(T) # tests all kinds of different ways of constructing the array
47-
TestSuite.test_fft(T) # fft tests
4847
TestSuite.test_linalg(T) # linalg function tests
4948
TestSuite.test_mapreduce(T) # mapreduce sum, etc
5049
TestSuite.test_indexing(T) # indexing tests

src/reference.jl

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -329,30 +329,6 @@ Base.copyto!(dest::DenseJLArray{T}, source::DenseJLArray{T}) where {T} =
329329
copyto!(dest, 1, source, 1, length(source))
330330

331331

332-
## fft
333-
334-
using AbstractFFTs
335-
336-
# defining our own plan type is the easiest way to pass around the plans in FFTW interface
337-
# without ambiguities
338-
339-
struct FFTPlan{T}
340-
p::T
341-
end
342-
343-
AbstractFFTs.plan_fft(A::JLArray; kw_args...) = FFTPlan(plan_fft(A.data; kw_args...))
344-
AbstractFFTs.plan_fft!(A::JLArray; kw_args...) = FFTPlan(plan_fft!(A.data; kw_args...))
345-
AbstractFFTs.plan_bfft!(A::JLArray; kw_args...) = FFTPlan(plan_bfft!(A.data; kw_args...))
346-
AbstractFFTs.plan_bfft(A::JLArray; kw_args...) = FFTPlan(plan_bfft(A.data; kw_args...))
347-
AbstractFFTs.plan_ifft!(A::JLArray; kw_args...) = FFTPlan(plan_ifft!(A.data; kw_args...))
348-
AbstractFFTs.plan_ifft(A::JLArray; kw_args...) = FFTPlan(plan_ifft(A.data; kw_args...))
349-
350-
function Base.:(*)(plan::FFTPlan, A::JLArray)
351-
x = plan.p * A.data
352-
JLArray(x)
353-
end
354-
355-
356332
## Random
357333

358334
using Random

test/testsuite.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ using LinearAlgebra
1212
using Random
1313
using Test
1414

15-
using FFTW
1615
using Adapt
1716
using FillArrays
1817

@@ -72,7 +71,6 @@ include("testsuite/mapreduce.jl")
7271
include("testsuite/broadcasting.jl")
7372
include("testsuite/linalg.jl")
7473
include("testsuite/math.jl")
75-
include("testsuite/fft.jl")
7674
include("testsuite/random.jl")
7775
include("testsuite/uniformscaling.jl")
7876

test/testsuite/fft.jl

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)