powered by
Allocates (or reuses) a double matrix in the worker scratch pool.
scratch_matrix(nrow, ncol, key = NULL)
A double matrix of dimensions nrow by ncol.
nrow
ncol
Dimensions.
Optional key to control reuse. Defaults to a shape-derived key.
m <- scratch_matrix(10, 5) dim(m)
Run the code above in your browser using DataLab