aesara.tensor.cumsum

Contents

aesara.tensor.cumsum#

aesara.tensor.cumsum(x, axis=None)[source]#

Return the cumulative sum of the elements along a given axis.

This wraps numpy.cumsum.

Parameters:
  • x – Input tensor variable.

  • axis – The axis along which the cumulative sum is computed. The default (None) is to compute the cumsum over the flattened array.

New in version 0.7.