JuliaLang/julia

Greedy: want atsign-simd working for zip

Open

#15,378 opened on Mar 6, 2016

 (1 comment) (0 reactions) (0 assignees)Julia (5,773 forks)batch import
compiler:simdhelp wanted

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (Avg merge 20d 6h) (157 merged PRs in 30d)

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