JuliaLang/julia

Greedy: want atsign-simd working for zip

Ouverte

#15 378 ouverte le 6 mars 2016

 (1 commentaire) (0 réaction) (0 personne assignée)Julia (5 773 forks)batch import
compiler:simdhelp wanted

Métriques du dépôt

Stars
 (48 709 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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

Guide contributeur