Cumulative Sums

# S3 method for caracas_symbol
cumsum(x)

Arguments

x

Elements to sum

Examples

if (has_sympy()) {
  A <- matrix(1:9, 3)
  cumsum(A)
  B <- matrix_sym(3, 3)
  cumsum(B)
  C <- vector_sym(3)
  cumsum(C)
}
#> c: [v₁  v₁ + v₂  v₁ + v₂ + v₃]ᵀ