From 01774251f2c685b81e9652f052379f2bc96582e5 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Wed, 9 Feb 2022 07:02:46 -0600 Subject: [PATCH] Improve inferrability of dims_howmany This should be good for performance, and prevents dozens of invalidations when loading packages like Interpolations which add `eltype` methods. --- src/fft.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fft.jl b/src/fft.jl index 4063ea7..9d038e3 100644 --- a/src/fft.jl +++ b/src/fft.jl @@ -514,8 +514,8 @@ unsafe_execute!(plan::r2rFFTWPlan{T}, # Compute dims and howmany for FFTW guru planner function dims_howmany(X::StridedArray, Y::StridedArray, - sz::Array{Int,1}, region) - reg = Int[region...] + sz::Vector{Int}, region) + reg = Int[region...]::Vector{Int} if length(unique(reg)) < length(reg) throw(ArgumentError("each dimension can be transformed at most once")) end