@@ -19,11 +19,9 @@ ChebyshevTransformPlan{T,kind}(plan::FFTW.r2rFFTWPlan{T,K,inplace,N,R}) where {T
19
19
ChebyshevTransformPlan {T,kind,K,inplace,N,R} (plan)
20
20
21
21
# jump through some hoops to make inferrable
22
- @inline kindtuple (N) = NTuple{N,Int32}
23
- @inline kindtuple (N,region... ) = Vector{Int32}
24
22
function plan_chebyshevtransform! (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
25
23
if isempty (x)
26
- ChebyshevTransformPlan {T,1,kindtuple(N,dims...) ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
24
+ ChebyshevTransformPlan {T,1,Vector{Int32} ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
27
25
else
28
26
ChebyshevTransformPlan {T,1} (FFTW. plan_r2r! (x, FIRSTKIND, dims... ; kws... ))
29
27
end
36
34
37
35
function plan_chebyshevtransform (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
38
36
if isempty (x)
39
- ChebyshevTransformPlan {T,1,kindtuple(N,dims...) ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
37
+ ChebyshevTransformPlan {T,1,Vector{Int32} ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
40
38
else
41
39
ChebyshevTransformPlan {T,1} (FFTW. plan_r2r (x, FIRSTKIND, dims... ; kws... ))
42
40
end
@@ -250,7 +248,7 @@ inv(P::IChebyshevTransformPlan{T,1}) where {T} = ChebyshevTransformPlan{T,1}(inv
250
248
251
249
function plan_ichebyshevtransform! (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
252
250
if isempty (x)
253
- IChebyshevTransformPlan {T,1,kindtuple(N,dims...) ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
251
+ IChebyshevTransformPlan {T,1,Vector{Int32} ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
254
252
else
255
253
IChebyshevTransformPlan {T,1} (FFTW. plan_r2r! (x, IFIRSTKIND, dims... ; kws... ))
256
254
end
262
260
263
261
function plan_ichebyshevtransform (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
264
262
if isempty (x)
265
- IChebyshevTransformPlan {T,1,kindtuple(N,dims...) ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
263
+ IChebyshevTransformPlan {T,1,Vector{Int32} ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
266
264
else
267
265
IChebyshevTransformPlan {T,1} (FFTW. plan_r2r (x, IFIRSTKIND, dims... ; kws... ))
268
266
end
@@ -390,7 +388,7 @@ ChebyshevUTransformPlan{T,kind}(plan::FFTW.r2rFFTWPlan{T,K,inplace,N,R}) where {
390
388
391
389
function plan_chebyshevutransform! (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
392
390
if isempty (x)
393
- ChebyshevUTransformPlan {T,1,kindtuple(N,dims...) ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
391
+ ChebyshevUTransformPlan {T,1,Vector{Int32} ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
394
392
else
395
393
ChebyshevUTransformPlan {T,1} (FFTW. plan_r2r! (x, UFIRSTKIND, dims... ; kws... ))
396
394
end
402
400
403
401
function plan_chebyshevutransform (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
404
402
if isempty (x)
405
- ChebyshevUTransformPlan {T,1,kindtuple(N,dims...) ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
403
+ ChebyshevUTransformPlan {T,1,Vector{Int32} ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
406
404
else
407
405
ChebyshevUTransformPlan {T,1} (FFTW. plan_r2r (x, UFIRSTKIND, dims... ; kws... ))
408
406
end
@@ -511,7 +509,7 @@ IChebyshevUTransformPlan{T,kind}(F::FFTW.r2rFFTWPlan{T,K,inplace,N,R}) where {T,
511
509
512
510
function plan_ichebyshevutransform! (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
513
511
if isempty (x)
514
- IChebyshevUTransformPlan {T,1,kindtuple(N,dims...) ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
512
+ IChebyshevUTransformPlan {T,1,Vector{Int32} ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
515
513
else
516
514
IChebyshevUTransformPlan {T,1} (FFTW. plan_r2r! (x, IUFIRSTKIND, dims... ; kws... ))
517
515
end
523
521
524
522
function plan_ichebyshevutransform (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
525
523
if isempty (x)
526
- IChebyshevUTransformPlan {T,1,kindtuple(N,dims...) ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
524
+ IChebyshevUTransformPlan {T,1,Vector{Int32} ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
527
525
else
528
526
IChebyshevUTransformPlan {T,1} (FFTW. plan_r2r (x, IUFIRSTKIND, dims... ; kws... ))
529
527
end
0 commit comments