cumulativeSumMatrices: Cumulative sum of matrices

View source: R/utilities.R

cumulativeSumMatricesR Documentation

Cumulative sum of matrices

Description

Cumulative sum of matrices

Usage

cumulativeSumMatrices(matrixList)

Arguments

matrixList

A list of matrices

Value

This function returns the cumulative sum of matrices

Author(s)

Alejandro Espinosa-Rada

Examples


A <- matrix(c(
  0, 1, 1,
  0, 0, 0,
  0, 1, 0
), byrow = TRUE, ncol = 3)
B <- matrix(c(
  0, 0, 1,
  0, 0, 0,
  0, 0, 0
), byrow = TRUE, ncol = 3)
C <- matrix(c(
  0, 0, 0,
  1, 0, 0,
  0, 0, 0
), byrow = TRUE, ncol = 3)
matrixList <- list(A, B, C)
cumulativeSumMatrices(matrixList)


anespinosa/netmem documentation built on April 5, 2025, 5:02 p.m.