Description Usage Arguments Value Examples
Creates an uninitialized matrix (that is, assigns values according to what was allocated in the memory)
1 |
nrow, ncol |
number of rows and columns |
A numeric matrix of dim nrow x ncol.
1 2 3 4 5 6 | mat <- emptyMatrix(10, 10)
# Initialize matrix with 1000000 entries
require(microbenchmark)
microbenchmark(matrix(, 100, 10000))
microbenchmark(emptyMatrix(100, 10000))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.