@@ -219,7 +219,7 @@ for f in (:leg2cheb, :cheb2leg, :ultra2ultra, :jac2jac,
219
219
plan_f = Symbol (" plan_" , f)
220
220
@eval begin
221
221
$ plan_f (x:: AbstractArray{T} , y... ; z... ) where T = $ plan_f (T, size (x, 1 ), y... ; z... )
222
- $ plan_f (x :: AbstractArray {Complex{T}} , y... ; z... ) where T <: Real = $ plan_f (T, size (x, 1 ) , y... ; z... )
222
+ $ plan_f (:: Type {Complex{T}} , y... ; z... ) where T <: Real = $ plan_f (T, y... ; z... )
223
223
$ f (x:: AbstractArray , y... ; z... ) = $ plan_f (x, y... ; z... )* x
224
224
end
225
225
end
@@ -436,7 +436,7 @@ for (fJ, fC, fE, K) in ((:plan_sph_synthesis, :ft_plan_sph_synthesis, :ft_execut
436
436
(:plan_tri_analysis , :ft_plan_tri_analysis , :ft_execute_tri_analysis , TRIANGLEANALYSIS))
437
437
@eval begin
438
438
$ fJ (x:: Matrix{T} ) where T = $ fJ (T, size (x, 1 ), size (x, 2 ))
439
- $ fJ (x :: Matrix {Complex{T}} ) where T <: Real = $ fJ (T, size (x, 1 ), size (x, 2 ) )
439
+ $ fJ (:: Type {Complex{T}}, x ... ) where T <: Real = $ fJ (T, x ... )
440
440
function $fJ (:: Type{Float64} , n:: Integer , m:: Integer )
441
441
plan = ccall (($ (string (fC)), libfasttransforms), Ptr{ft_plan_struct}, (Cint, Cint), n, m)
442
442
return FTPlan {Float64, 2, $K} (plan, n, m)
@@ -452,7 +452,7 @@ for (fJ, fC, fE, K) in ((:plan_sph_synthesis, :ft_plan_sph_synthesis, :ft_execut
452
452
end
453
453
454
454
plan_tet_synthesis (x:: Array{T, 3} ) where T = plan_tet_synthesis (T, size (x, 1 ), size (x, 2 ), size (x, 3 ))
455
- plan_tet_synthesis (x :: Array {Complex{T}, 3} ) where T <: Real = plan_tet_synthesis (T, size (x, 1 ), size (x, 2 ), size (x, 3 ) )
455
+ plan_tet_synthesis (:: Type {Complex{T}} , x ... ) where T <: Real = plan_tet_synthesis (T, x ... )
456
456
457
457
function plan_tet_synthesis (:: Type{Float64} , n:: Integer , l:: Integer , m:: Integer )
458
458
plan = ccall ((:ft_plan_tet_synthesis , libfasttransforms), Ptr{ft_plan_struct}, (Cint, Cint, Cint), n, l, m)
@@ -468,7 +468,7 @@ function lmul!(p::FTPlan{Float64, 3, TETRAHEDRONSYNTHESIS}, x::Array{Float64, 3}
468
468
end
469
469
470
470
plan_tet_analysis (x:: Array{T, 3} ) where T = plan_tet_analysis (T, size (x, 1 ), size (x, 2 ), size (x, 3 ))
471
- plan_tet_analysis (x :: Array {Complex{T}, 3} ) where T <: Real = plan_tet_analysis (T, size (x, 1 ), size (x, 2 ), size (x, 3 ) )
471
+ plan_tet_analysis (:: Type {Complex{T}} , x ... ) where T <: Real = plan_tet_analysis (T, x ... )
472
472
473
473
function plan_tet_analysis (:: Type{Float64} , n:: Integer , l:: Integer , m:: Integer )
474
474
plan = ccall ((:ft_plan_tet_analysis , libfasttransforms), Ptr{ft_plan_struct}, (Cint, Cint, Cint), n, l, m)
0 commit comments