This is equivalent but seems more explicit: `arr[np.triu_indices(dm_size, k=1)]`