-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Suppose I have a function
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)
endIs there a way to represent this loop over the 'upper triangular indices' of ret with LoopVectorization.jl?
chriselrod, chriscoey, mdav2, DilumAluthge, zsoerenm and 1 more
Metadata
Metadata
Assignees
Labels
No labels