JuliaSIMD / JuliaSIMD/LoopVectorization.jl

Unrecognized loop range type: list of integers (new feature)

Aperta
#334 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Julia
Stelle
789
Fork
73
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi,

I am trying to use ```@turbo``` to loop over a list of integers. Naive implementations such as
```julia
@turbo for i in [1,10,15]
# do something
end
```

do not seem to work. However, simple workarounds like
```julia
ind = [1,10,15];
@turbo for j in eachindex(ind)
i = ind[j]
# do something
end
```

work fine. Is there any chance that similar cases will be handled as in the first example (i.e., naive implementation) in future releases?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.