JuliaLang/julia

Greedy: want atsign-simd working for zip

Open

#15,378 opened on Mar 6, 2016

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Julia (48,709 stars) (5,773 forks)batch import
compiler:simdhelp wanted

Description

Inspired by https://github.com/JuliaLang/julia/pull/15356#issuecomment-192931987 and the discussion there, it would be lovely if the following worked:

@simd for (IA, IB) in zip(eachindex(A), eachindex(B))
    @inbounds s += A[IA] * B[IB]
end

Contributor guide