Skip to content

Commit

Permalink
add type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Nov 5, 2022
1 parent c46d78c commit 1beeace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ summary(p::ScaledPlan) = string(p.scale, " * ", summary(p.p))
# Normalization for ifft, given unscaled bfft, is 1/prod(dimensions)
function normalization(::Type{T}, sz, region) where T
@boundscheck !isempty(region) && checkindex(Bool, eachindex(sz), region)
one(T) / mapreduce(r -> Int(@inbounds sz[r]), *, region; init=1)
one(T) / mapreduce(r -> Int(@inbounds sz[r])::Int, *, region; init=oneunit(eltype(sz)))::Int
end
normalization(X, region) = normalization(real(eltype(X)), size(X), region)

Expand Down

0 comments on commit 1beeace

Please sign in to comment.