Cumulative sum of elements (along an axis).
See also numpy.ndarray.cumsum().
numpy.ndarray.cumsum()
treams.SMatrix.cumprod
treams.SMatrix.diagonal