What is the most efficient way of selecting the square sub-matrix of a matrix x that is formed of the row and column intersections at some indices?  Is there a faster approach than x[indices][:, indices]?
I’m asking because I remember seeing this (seemingly unsolved) issue: https://github.com/pytorch/pytorch/issues/15245 110. But I’m not sure if it affects this case.