big_increment {bigstatsr} | R Documentation |
Increment an FBM
Description
Increment an FBM
Usage
big_increment(X, add, use_lock = FALSE)
Arguments
X |
An |
add |
A matrix of same dimensions as |
use_lock |
Whether to use locks when incrementing. Default is |
Value
Returns nothing (NULL
, invisibly).
Examples
X <- FBM(10, 10, init = 0)
mat <- matrix(rnorm(100), 10, 10)
big_increment(X, mat)
all.equal(X[], mat)
big_increment(X, mat)
all.equal(X[], 2 * mat)
[Package bigstatsr version 1.5.12 Index]