@@ -49,9 +49,6 @@ function plan_chebyshevtransform(x::AbstractArray{T,N}, ::Val{2}, dims...; kws..
49
49
ChebyshevTransformPlan {T,2} (FFTW. plan_r2r (x, SECONDKIND, dims... ; kws... ))
50
50
end
51
51
52
- plan_chebyshevtransform! (x:: AbstractArray , dims... ; kws... ) = plan_chebyshevtransform! (x, Val (1 ), dims... ; kws... )
53
- plan_chebyshevtransform (x:: AbstractArray , dims... ; kws... ) = plan_chebyshevtransform (x, Val (1 ), dims... ; kws... )
54
-
55
52
56
53
# convert x if necessary
57
54
@inline _plan_mul! (y:: AbstractArray{T} , P:: Plan{T} , x:: StridedArray{T} ) where T = mul! (y, P, x)
@@ -221,9 +218,6 @@ function plan_ichebyshevtransform(x::AbstractArray{T}, ::Val{2}, dims...; kws...
221
218
inv (plan_chebyshevtransform (x, Val (2 ), dims... ; kws... ))
222
219
end
223
220
224
- plan_ichebyshevtransform! (x:: AbstractArray , dims... ; kws... ) = plan_ichebyshevtransform! (x, Val (1 ), dims... ; kws... )
225
- plan_ichebyshevtransform (x:: AbstractArray , dims... ; kws... ) = plan_ichebyshevtransform (x, Val (1 ), dims... ; kws... )
226
-
227
221
@inline function _icheb1_prescale! (d:: Number , x:: AbstractArray )
228
222
lmul_dim_begin! (2 , d, x)
229
223
x
@@ -369,9 +363,6 @@ function plan_chebyshevutransform(x::AbstractArray{T,N}, ::Val{2}, dims...; kws.
369
363
ChebyshevUTransformPlan {T,2} (FFTW. plan_r2r (x, USECONDKIND, dims... ; kws... ))
370
364
end
371
365
372
- plan_chebyshevutransform! (x:: AbstractArray , dims... ; kws... ) = plan_chebyshevutransform! (x, Val (1 ), dims... ; kws... )
373
- plan_chebyshevutransform (x:: AbstractArray , dims... ; kws... ) = plan_chebyshevutransform (x, Val (1 ), dims... ; kws... )
374
-
375
366
376
367
_permfirst (d, N) = [d; 1 : d- 1 ; d+ 1 : N]
377
368
@@ -526,9 +517,6 @@ function plan_ichebyshevutransform(x::AbstractArray{T,N}, ::Val{2}, dims...; kws
526
517
end
527
518
528
519
529
- plan_ichebyshevutransform! (x:: AbstractArray , dims... ; kws... ) = plan_ichebyshevutransform! (x, Val (1 ), dims... ; kws... )
530
- plan_ichebyshevutransform (x:: AbstractArray , dims... ; kws... ) = plan_ichebyshevutransform (x, Val (1 ), dims... ; kws... )
531
-
532
520
# second kind Chebyshev transforms share a plan with their inverse
533
521
# so we support this via inv
534
522
inv (P:: ChebyshevUTransformPlan{T,2} ) where {T} = IChebyshevUTransformPlan {T,2} (P. plan)
744
732
copyto! (x, IChebyshevTransformPlan {T,1,Nothing,false,N,R} () * x)
745
733
# *(P::IChebyshevTransformPlan{T,SECONDKIND,false,Nothing}, x::AbstractVector{T}) where T =
746
734
# IChebyshevTransformPlan{T,SECONDKIND,true,Nothing}() * copy(x)
735
+
736
+
737
+ for pln in (:plan_chebyshevtransform! , :plan_chebyshevtransform ,
738
+ :plan_chebyshevutransform! , :plan_chebyshevutransform ,
739
+ :plan_ichebyshevutransform , :plan_ichebyshevutransform! ,
740
+ :plan_ichebyshevtransform , :plan_ichebyshevtransform! )
741
+ @eval begin
742
+ $ pln (x:: AbstractArray , dims... ; kws... ) = $ pln (x, Val (1 ), dims... ; kws... )
743
+ $ pln (:: Type{T} , szs, dims... ; kwds... ) where T = $ pln (Array {T} (undef, szs... ), dims... ; kwds... )
744
+ end
745
+ end
0 commit comments