@@ -42,12 +42,12 @@ function czt_1d(xin, scaled, d)
4242 # is always 1d (small array)
4343 fv = fft (to_fft)
4444
45- y = xin .* reorient (aa,d )
45+ y = xin .* reorient (aa,Val (d) )
4646 # twice the size along direction d
47- nsz = sz .* NDTools. single_dim_size (d,2 ,length (sz))
47+ nsz = sz .* NDTools. single_dim_size (d,2 ,Val ( length (sz) ))
4848 to_fft = NDTools. select_region (y, new_size= nsz, center= nsz.÷ 2 .+ 1 )
4949 # convolve on a larger grid along one dimension
50- g = ifft (fft (to_fft, d) .* reorient (fv,d ), d)
50+ g = ifft (fft (to_fft, d) .* reorient (fv,Val (d) ), d)
5151 # return g
5252 oldctr = sz[d]÷ 2 + 1
5353 newctr = size (g) .÷ 2 .+ 1
@@ -62,7 +62,7 @@ function czt_1d(xin, scaled, d)
6262 # is a 1d list of factors
6363 fak = ww[dsize: (2 * dsize- 1 )] .* cispi .(ramp (rtype,1 ,dsize, scale= 1 / scaled * extra_phase))
6464 # return select_region(g, new_size=sz,center=ctr)
65- xout = select_region (g, new_size= sz,center= ctr) .* reorient (fak,d )
65+ xout = select_region (g, new_size= sz,center= ctr) .* reorient (fak,Val (d) )
6666
6767 # this is a fix to deal with the problem that imaginary numbers are appearing for even-sized arrays, caused by the first entry
6868 if iseven (dsize) && (scaled> 1.0 )
@@ -73,7 +73,7 @@ function czt_1d(xin, scaled, d)
7373 end
7474 end
7575 return xout
76- # xout .= g[dsize:(2*dsize-1)] .* reorient(fak,d )
76+ # xout .= g[dsize:(2*dsize-1)] .* reorient(fak,Val(d) )
7777end
7878
7979"""
0 commit comments