R/scratch.R
scratch_matrix.Rd
Allocates (or reuses) a double matrix in the worker scratch pool.
scratch_matrix(nrow, ncol, key = NULL)
Dimensions.
Optional key to control reuse. Defaults to a shape-derived key.
A double matrix of dimensions nrow by ncol.
nrow
ncol
m <- scratch_matrix(10, 5) dim(m) #> [1] 10 5