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