You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that axes checking is fooled by the nested array types -- I'm not sure if this should be fixed in OffsetArray, ArrayInterface or here.
using LoopVectorization, OffsetArrays
functionfavx!(out, A)
@turbofor i ineachindex(out, A)
out[i] = A[i]
endreturn out
end
A =centered([1, 2, 3, 4, 5])
out =similar(A)
favx!(out, A) # correct: [1, 2, 3, 4, 5]
out =@viewcentered(zeros(eltype(A), 5, 5))[:, begin] # SubArray of OffsetArrayfavx!(out, A) # incorrect [4, 5, 0, 0, 0]
The text was updated successfully, but these errors were encountered:
It seems that axes checking is fooled by the nested array types -- I'm not sure if this should be fixed in OffsetArray, ArrayInterface or here.
The text was updated successfully, but these errors were encountered: