As always, examples are best. With a loop I can do:
for i in 1:3:12 tmp[i] = a[i]*b[i] end
Is there a way to make
tmp .= a.*b
only update specific chosen indices? And as a slight extension, what about having
tmp be dense while the others aren’t?
idxs = 1:3:12 for i in idxs tmp[i] = a[idxs[i]]*b[idxs[i]] end