Description Usage Arguments See Also Examples
Row, column, and block-diagonal binding for structured sparse matrices
Repeat structured sparse matrix
1 2 3 4 5 6 7 |
... |
list of |
type |
type of binding |
mats |
list of |
x |
|
times |
like |
repVals |
should the unique values ( |
Other matrixCombining: kr
,
kron
,
kronecker,strucMatrix,strucMatrix-method
;
strucMatrixRowSubset
,
subset.strucMatrix
Other matrixCombining: kr
,
kron
,
kronecker,strucMatrix,strucMatrix-method
;
strucMatrixRowSubset
,
subset.strucMatrix
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | set.seed(1)
X <- strucMatrix(c(1, 2, 1, 2), c(1, 1, 2, 2), 1:4, rnorm(4))
Y <- strucMatrix(c(1, 2, 1), c(1, 1, 2), 1:3, rnorm(3))
Z <- strucMatrix(c(1, 2), c(1, 2), 1:2, rnorm(2))
(bindDiag <- bind(X, Y, Z, type = "diag"))
(bindRow <- bind(X, Y, Z, type = "row"))
(bindCol <- bind(X, Y, Z, type = "col"))
set.seed(1)
X <- strucMatrix(c(1, 2, 1, 2), c(1, 1, 2, 2), 1:4, rnorm(4))
Y <- strucMatrix(c(1, 2, 1), c(1, 1, 2), 1:3, rnorm(3))
Z <- strucMatrix(c(1, 2), c(1, 2), 1:2, rnorm(2))
(repDiag <- rep(X, 3, type = "diag"))
(repRow <- rep(X, 3, type = "row"))
(repCol <- rep(X, 3, type = "col"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.