Пример #1
0
def cumprod(x, axis = None):
  return scan(prims.multiply, x, axis = axis)
Пример #2
0
def cumprod(x, axis=None):
    return scan(prims.multiply, x, axis=axis)
Пример #3
0
def cumsum(x, axis = None):
  return scan(prims.add, x, axis = axis)
Пример #4
0
def cumsum(x, axis=None):
    return scan(prims.add, x, axis=axis)