JuliaLang/julia

Greedy: want atsign-simd working for zip

Aperta

#15.378 aperta il 6 mar 2016

 (1 commento) (0 reazioni) (0 assegnatari)Julia (5773 fork)batch import
compiler:simdhelp wanted

Metriche repository

Star
 (48.709 stelle)
Metriche merge PR
 (Merge medio 20g 6h) (157 PR mergiate in 30 g)

Descrizione

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

Guida contributor