Pretty sure the answer is ‘no’ but thought I’d see if there’s any bright ideas.

I have a set of N objects (matrices, vectors, whatever – different structures) and a vector of values. I’d like to assign the vector of values to the N objects, according to a corresponding vector of indices representing the object and indices within the object to assign to.

I currently do this separately for each of the N objects, but it’s ugly.