JuliaSIMD / JuliaSIMD/LoopVectorization.jl
Support for 'triangular' loops
- Lenguaje dominante
- Julia
- Estrellas
- 789
- Forks
- 73
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Suppose I have a function
```julia
function pairwise(a)
ret = Matrix{eltype(a)}(undef, length(a), length(a))
for i in 1:(length(a)-1)
for j in (i+1):length(a)
ret[i, j] = a[i] * a[j]
end
end
UpperTriangular(ret)
end
```
Is there a way to represent this loop over the 'upper triangular indices' of `ret` with LoopVectorization.jl?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start by reading LoopVectorization.jl’s existing loop syntax and trying the provided pairwise example with its upper-triangular indices. Determine whether triangular-loop representation is supported and define completion as making this example expressible and vectorizable, with coverage for the resulting upper-triangular iteration.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- julia
- Área
- performance
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 25/100