cumulativeSumMatrices | R Documentation |
Cumulative sum of matrices
cumulativeSumMatrices(matrixList)
matrixList |
A list of matrices |
This function returns the cumulative sum of matrices
Alejandro Espinosa-Rada
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.