matrix.concatenate | R Documentation |
Creates a concatenation of the matrices.
matrix.concatenate(mats, axis = 2, n_threads = 1)
mats |
List of matrices. |
axis |
The axis along which the matrices will be joined. With axis = 2 (default) this function is equivalent to |
n_threads |
Number of threads. |
Concatenation of matrices. The object is an S4 class with methods for efficient computation in C++ by adelie. Note that for the object itself axis is represented with base 0 (so 1 less than the argument here).
Trevor Hastie and James Yang
Maintainer: Trevor Hastie hastie@stanford.edu
n <- 100
ps <- c(10, 20, 30)
ps <- c(10, 20, 30)
n <- 100
mats <- lapply(ps, function(p) {
matrix.dense(matrix(rnorm(n * p), n, p))
})
out <- matrix.concatenate(mats, axis=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.