% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scratch.R
\name{scratch_matrix}
\alias{scratch_matrix}
\title{Get a scratch matrix}
\usage{
scratch_matrix(nrow, ncol, key = NULL)
}
\arguments{
\item{nrow, ncol}{Dimensions.}

\item{key}{Optional key to control reuse. Defaults to a shape-derived key.}
}
\value{
A double matrix of dimensions \code{nrow} by \code{ncol}.
}
\description{
Allocates (or reuses) a double matrix in the worker scratch pool.
}
\examples{
m <- scratch_matrix(10, 5)
dim(m)
}
