@@ -71,9 +71,9 @@ function _mapreduce(f, op, A::StridedView{T}, nt=nothing) where {T}
7171 return out[ParentIndex (1 )]
7272end
7373
74- @inline function Base. mapreducedim! (f, op, b:: StridedView{<:Any,N} ,
75- a1:: StridedView{<:Any,N} ,
76- A:: Vararg{StridedView{<:Any,N}} ) where {N}
74+ function Base. mapreducedim! (f, op, b:: StridedView{<:Any,N} ,
75+ a1:: StridedView{<:Any,N} ,
76+ A:: Vararg{StridedView{<:Any,N}} ) where {N}
7777 outdims = size (b)
7878 dims = map (max, outdims, map (max, map (size, (a1, A... ))... ))
7979
@@ -176,7 +176,7 @@ function _mapreduce_block!((f), (op), (initop),
176176 _mapreduce_threaded! (f, op, initop, dims, blocks, strides, offsets, costs, arrays,
177177 get_num_threads (), 0 , 1 )
178178 end
179- return
179+ return nothing
180180end
181181
182182_init_reduction! (out, f, op:: Union{typeof(+),typeof(Base.add_sum)} , a) = fill! (out, zero (a))
@@ -483,7 +483,7 @@ function _computeblocks(dims::NTuple{N,Int}, costs::NTuple{N,Int},
483483 end
484484
485485 if minimum (minimum .(bytestrides)) > blocksize
486- return ntuple (n -> 1 , N )
486+ return ntuple (n -> 1 , Val (N) )
487487 end
488488
489489 # reduce dims to find appropriate blocks
0 commit comments