Performance of computing the diagonal of V' * A *V

Note that this is also a bad idea in general, because it is an abstractly typed container.