That is wonderful. I've lost track of how many times I've wanted to make a view of the diagonal of a matrix. I figured out that trick with reshape and fancy indexing just recently.