jax.pallas.tpu_sc.cumsum# jax.pallas.tpu_sc.cumsum(x, *, mask=None)[source]# Returns the cumulative sum of the array along its innermost axis. This differs from jnp.cumsum in that it takes an additional mask argument. Parameters: x (Array) – An array of integers or floats. mask (Array | None) – An optional array of booleans, which specifies which elements of x are eligible for summing. If None, all elements are eligible. Return type: Array