@@ -22,11 +22,9 @@ ChebyshevTransformPlan{T,kind}(plan::FFTW.r2rFFTWPlan{T,K,inplace,N,R}) where {T
22
22
23
23
# jump through some hoops to make inferrable
24
24
25
- _fftKtype (:: Val{N} , _... ) where N = Vector{Int32}
26
-
27
25
function plan_chebyshevtransform! (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
28
26
if isempty (x)
29
- ChebyshevTransformPlan {T,1,_fftKtype(Val{N}(), dims...) ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
27
+ ChebyshevTransformPlan {T,1,Vector{Int32} ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
30
28
else
31
29
ChebyshevTransformPlan {T,1} (FFTW. plan_r2r! (x, FIRSTKIND, dims... ; kws... ))
32
30
end
39
37
40
38
function plan_chebyshevtransform (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
41
39
if isempty (x)
42
- ChebyshevTransformPlan {T,1,_fftKtype(Val{N}(), dims...) ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
40
+ ChebyshevTransformPlan {T,1,Vector{Int32} ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
43
41
else
44
42
ChebyshevTransformPlan {T,1} (FFTW. plan_r2r (x, FIRSTKIND, dims... ; kws... ))
45
43
end
@@ -196,7 +194,7 @@ inv(P::IChebyshevTransformPlan{T,1}) where {T} = ChebyshevTransformPlan{T,1}(inv
196
194
197
195
function plan_ichebyshevtransform! (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
198
196
if isempty (x)
199
- IChebyshevTransformPlan {T,1,_fftKtype(Val{N}(), dims...) ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
197
+ IChebyshevTransformPlan {T,1,Vector{Int32} ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
200
198
else
201
199
IChebyshevTransformPlan {T,1} (FFTW. plan_r2r! (x, IFIRSTKIND, dims... ; kws... ))
202
200
end
208
206
209
207
function plan_ichebyshevtransform (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
210
208
if isempty (x)
211
- IChebyshevTransformPlan {T,1,_fftKtype(Val{N}(), dims...) ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
209
+ IChebyshevTransformPlan {T,1,Vector{Int32} ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
212
210
else
213
211
IChebyshevTransformPlan {T,1} (FFTW. plan_r2r (x, IFIRSTKIND, dims... ; kws... ))
214
212
end
@@ -335,7 +333,7 @@ ChebyshevUTransformPlan{T,kind}(plan::FFTW.r2rFFTWPlan{T,K,inplace,N,R}) where {
335
333
336
334
function plan_chebyshevutransform! (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
337
335
if isempty (x)
338
- ChebyshevUTransformPlan {T,1,_fftKtype(Val{N}(), dims...) ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
336
+ ChebyshevUTransformPlan {T,1,Vector{Int32} ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
339
337
else
340
338
ChebyshevUTransformPlan {T,1} (FFTW. plan_r2r! (x, UFIRSTKIND, dims... ; kws... ))
341
339
end
347
345
348
346
function plan_chebyshevutransform (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
349
347
if isempty (x)
350
- ChebyshevUTransformPlan {T,1,_fftKtype(Val{N}(), dims...) ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
348
+ ChebyshevUTransformPlan {T,1,Vector{Int32} ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
351
349
else
352
350
ChebyshevUTransformPlan {T,1} (FFTW. plan_r2r (x, UFIRSTKIND, dims... ; kws... ))
353
351
end
@@ -494,7 +492,7 @@ IChebyshevUTransformPlan{T,kind}(F::FFTW.r2rFFTWPlan{T,K,inplace,N,R}) where {T,
494
492
495
493
function plan_ichebyshevutransform! (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
496
494
if isempty (x)
497
- IChebyshevUTransformPlan {T,1,_fftKtype(Val{N}(), dims...) ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
495
+ IChebyshevUTransformPlan {T,1,Vector{Int32} ,true,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
498
496
else
499
497
IChebyshevUTransformPlan {T,1} (FFTW. plan_r2r! (x, IUFIRSTKIND, dims... ; kws... ))
500
498
end
506
504
507
505
function plan_ichebyshevutransform (x:: AbstractArray{T,N} , :: Val{1} , dims... ; kws... ) where {T<: fftwNumber ,N}
508
506
if isempty (x)
509
- IChebyshevUTransformPlan {T,1,_fftKtype(Val{N}(), dims...) ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
507
+ IChebyshevUTransformPlan {T,1,Vector{Int32} ,false,N,isempty(dims) ? NTuple{N,Int} : typeof(dims[1])} ()
510
508
else
511
509
IChebyshevUTransformPlan {T,1} (FFTW. plan_r2r (x, IUFIRSTKIND, dims... ; kws... ))
512
510
end
0 commit comments