What would you suggest is a fast and elegant way to achieve indexing into an array using a set of indices?
function setindices!(A,Values,Indices) assert(length(Values) == size(Indices,1)) for i=1:length(Values) setindex!(A,Values[i],(Indices[i,:]...)...) end end I am currently using this function and I was wondering whether I missed something.