@@ -459,7 +459,7 @@ for (Tr,Tc,fftw,lib) in ((:Float64,:Complex128,"fftw",libfftw),
459
459
region, flags:: Integer , timelimit:: Real )
460
460
direction = K
461
461
set_timelimit ($ Tr, timelimit)
462
- R = copy (region)
462
+ R = isa (region, Tuple) ? region : copy (region)
463
463
dims, howmany = dims_howmany (X, Y, [size (X)... ], R)
464
464
plan = ccall (($ (string (fftw," _plan_guru64_dft" )),$ lib),
465
465
PlanPtr,
@@ -477,7 +477,7 @@ for (Tr,Tc,fftw,lib) in ((:Float64,:Complex128,"fftw",libfftw),
477
477
@eval function (:: Type{rFFTWPlan{$Tr,$FORWARD,inplace,N}} ){inplace,N}(X:: StridedArray{$Tr,N} ,
478
478
Y:: StridedArray{$Tc,N} ,
479
479
region, flags:: Integer , timelimit:: Real )
480
- R = copy (region)
480
+ R = isa (region, Tuple) ? region : copy (region)
481
481
region = circshift ([region... ],- 1 ) # FFTW halves last dim
482
482
set_timelimit ($ Tr, timelimit)
483
483
dims, howmany = dims_howmany (X, Y, [size (X)... ], region)
@@ -497,7 +497,7 @@ for (Tr,Tc,fftw,lib) in ((:Float64,:Complex128,"fftw",libfftw),
497
497
@eval function (:: Type{rFFTWPlan{$Tc,$BACKWARD,inplace,N}} ){inplace,N}(X:: StridedArray{$Tc,N} ,
498
498
Y:: StridedArray{$Tr,N} ,
499
499
region, flags:: Integer , timelimit:: Real )
500
- R = copy (region)
500
+ R = isa (region, Tuple) ? region : copy (region)
501
501
region = circshift ([region... ],- 1 ) # FFTW halves last dim
502
502
set_timelimit ($ Tr, timelimit)
503
503
dims, howmany = dims_howmany (X, Y, [size (Y)... ], region)
@@ -518,7 +518,7 @@ for (Tr,Tc,fftw,lib) in ((:Float64,:Complex128,"fftw",libfftw),
518
518
Y:: StridedArray{$Tr,N} ,
519
519
region, kinds, flags:: Integer ,
520
520
timelimit:: Real )
521
- R = copy (region)
521
+ R = isa (region, Tuple) ? region : copy (region)
522
522
knd = fix_kinds (region, kinds)
523
523
set_timelimit ($ Tr, timelimit)
524
524
dims, howmany = dims_howmany (X, Y, [size (X)... ], region)
@@ -540,7 +540,7 @@ for (Tr,Tc,fftw,lib) in ((:Float64,:Complex128,"fftw",libfftw),
540
540
Y:: StridedArray{$Tc,N} ,
541
541
region, kinds, flags:: Integer ,
542
542
timelimit:: Real )
543
- R = copy (region)
543
+ R = isa (region, Tuple) ? region : copy (region)
544
544
knd = fix_kinds (region, kinds)
545
545
set_timelimit ($ Tr, timelimit)
546
546
dims, howmany = dims_howmany (X, Y, [size (X)... ], region)
0 commit comments