@tomtom wrote:
I’m wondered seeing that
mapslices()
gives warntype as below:julia> const mat = randn(3,2) 3×2 Array{Float64,2}: 1.49498 -1.98461 -0.935659 -0.0317199 0.783414 -0.284129 julia> mapslices(prod, mat, dims = 1) 1×2 Array{Float64,2}: -1.09583 -0.0178864 julia> @code_warntype mapslices(prod, mat, dims = 1) Body::Any ... 5 ┄ %16 = Base.:(var"#mapslices#109")(dims, @_3, f, A)::Any └── return %16
is there any way to avoid the warntype? thanks.
Posts: 5
Participants: 3