Get the diagonal of the array.
See also numpy.ndarray.diagonal().
numpy.ndarray.diagonal()
treams.PhysicsArray.cumsum
treams.PhysicsArray.flatten