Skip to content

Commit 7e8f4e0

Browse files
committed
Only export if these things are not defined in Base
1 parent bc16ae1 commit 7e8f4e0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/AbstractFFTs.jl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ using Base.LinAlg: BlasReal
77
import Base: show, summary, size, ndims, length, eltype,
88
*, A_mul_B!, inv, \, A_ldiv_B!
99

10-
if isdefined(Base, :DFT)
11-
import Base.DFT: fft, ifft, bfft, fft!, ifft!, bfft!,
12-
plan_fft, plan_ifft, plan_bfft, plan_fft!, plan_ifft!, plan_bfft!,
13-
rfft, irfft, brfft, plan_rfft, plan_irfft, plan_brfft
14-
else
10+
if !isdefined(Base, :DFT)
1511
export fft, ifft, bfft, fft!, ifft!, bfft!,
1612
plan_fft, plan_ifft, plan_bfft, plan_fft!, plan_ifft!, plan_bfft!,
17-
rfft, irfft, brfft, plan_rfft, plan_irfft, plan_brfft
13+
rfft, irfft, brfft, plan_rfft, plan_irfft, plan_brfft,
14+
fftshift, ifftshift
1815
end
1916

17+
2018
# DFT plan where the inputs are an array of eltype T
2119
abstract type Plan{T} end
2220

@@ -358,8 +356,6 @@ plan_irfft
358356

359357
##############################################################################
360358

361-
export fftshift, ifftshift
362-
363359
fftshift(x) = circshift(x, div.([size(x)...],2))
364360

365361
"""

0 commit comments

Comments
 (0)