JuliaLang/julia

Greedy: want atsign-simd working for zip

开放

#15,378 创建于 2016年3月6日

 (1 条评论) (0 个反应) (0 位负责人)Julia (5,773 个派生)batch import
compiler:simdhelp wanted

仓库指标

星标
 (48,709 个星标)
PR 合并指标
 (平均合并 20天 6小时) (30 天内合并 157 个 PR)

描述

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

贡献者指南