y=lab.cumsum(x) returns the cumulative product of the elements of x, performing the operation over the first dimension.

y=lab.cumsum(x,n) returns the cumulative product of the elements of x, performing the operation over dimension n.