@@ -603,12 +603,6 @@ function fix_kinds(region, kinds)
603
603
end
604
604
return k
605
605
end
606
- fix_kinds (region:: Tuple , kinds:: Integer ) = ntuple (_-> Int32 (kinds), length (region))
607
- fix_kinds (region:: Tuple , kinds:: Tuple{Integer} ) = fix_kinds (region, kinds[1 ])
608
-
609
- # Potentially avoid an extra `collect`
610
- _collect (T, x) = collect (T, x)
611
- _collect (:: Type{T} , x:: AbstractVector ) where {T} = convert (Vector{T}, x)
612
606
613
607
# low-level FFTWPlan creation (for internal use in FFTW module)
614
608
for (Tr,Tc,fftw,lib) in ((:Float64 ,:(Complex{Float64})," fftw" ,:libfftw3 ),
@@ -687,7 +681,7 @@ for (Tr,Tc,fftw,lib) in ((:Float64,:(Complex{Float64}),"fftw",:libfftw3),
687
681
(Int32, Ptr{Int}, Int32, Ptr{Int},
688
682
Ptr{$ Tr}, Ptr{$ Tr}, Ptr{Int32}, UInt32),
689
683
size (dims,2 ), dims, size (howmany,2 ), howmany,
690
- X, Y, _collect (Int32, knd) , flags)
684
+ X, Y, knd, flags)
691
685
unsafe_set_timelimit ($ Tr, NO_TIMELIMIT)
692
686
if plan == C_NULL
693
687
error (" FFTW could not create plan" ) # shouldn't normally happen
@@ -713,7 +707,7 @@ for (Tr,Tc,fftw,lib) in ((:Float64,:(Complex{Float64}),"fftw",:libfftw3),
713
707
(Int32, Ptr{Int}, Int32, Ptr{Int},
714
708
Ptr{$ Tc}, Ptr{$ Tc}, Ptr{Int32}, UInt32),
715
709
size (dims,2 ), dims, size (howmany,2 ), howmany,
716
- X, Y, _collect (Int32, knd) , flags)
710
+ X, Y, knd, flags)
717
711
unsafe_set_timelimit ($ Tr, NO_TIMELIMIT)
718
712
if plan == C_NULL
719
713
error (" FFTW could not create plan" ) # shouldn't normally happen
0 commit comments