Skip to content

Commit

Permalink
Overload deprecated Base versions of functions (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan authored Jun 16, 2017
1 parent 9565fcb commit f9772b0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/AbstractFFTs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ using Base.LinAlg: BlasReal
import Base: show, summary, size, ndims, length, eltype,
*, A_mul_B!, inv, \, A_ldiv_B!

if !isdefined(Base, :DFT)
export fft, ifft, bfft, fft!, ifft!, bfft!,
plan_fft, plan_ifft, plan_bfft, plan_fft!, plan_ifft!, plan_bfft!,
rfft, irfft, brfft, plan_rfft, plan_irfft, plan_brfft,
fftshift, ifftshift
if VERSION >= v"0.7.0-DEV.602"
if isdefined(Base, :DFT)
import Base: fft, ifft, bfft, fft!, ifft!, bfft!,
plan_fft, plan_ifft, plan_bfft, plan_fft!, plan_ifft!, plan_bfft!,
rfft, irfft, brfft, plan_rfft, plan_irfft, plan_brfft,
fftshift, ifftshift
else
export fft, ifft, bfft, fft!, ifft!, bfft!,
plan_fft, plan_ifft, plan_bfft, plan_fft!, plan_ifft!, plan_bfft!,
rfft, irfft, brfft, plan_rfft, plan_irfft, plan_brfft,
fftshift, ifftshift
end
end


Expand Down

0 comments on commit f9772b0

Please sign in to comment.