cumsumm {crossrun}R Documentation

Row-wise Cumulative Sums

Description

Row-wise Cumulative Sums in mpfr Array.

Usage

cumsumm(mtrx)

Arguments

mtrx

mpfr two-dimensional array.

Value

mpfr array with row-wise cumulative sums, same dimension as the original array.

Examples

nill <- Rmpfr::mpfr(0, 120)
one <- Rmpfr::mpfr(1, 120)
two <- Rmpfr::mpfr(2, 120)
contents <- c(one,nill,nill, one,one,one, two,two,two)
mtrx3 <- Rmpfr::mpfr2array(contents, dim = c(3, 3))
print(mtrx3)
print(cumsumm(mtrx3))

[Package crossrun version 0.1.1 Index]