fm_row_kron | R Documentation |
Takes two Matrices and computes the row-wise Kronecker product. Optionally applies row-wise weights and/or applies an additional 0/1 row-wise Kronecker matrix product.
fm_row_kron(M1, M2, repl = NULL, n.repl = NULL, weights = NULL)
M1 |
A matrix that can be transformed into a sparse Matrix. |
M2 |
A matrix that can be transformed into a sparse Matrix. |
repl |
An optional index vector. For each entry, specifies which
replicate the row belongs to, in the sense used in
|
n.repl |
The maximum replicate index, in the sense used in
|
weights |
Optional scaling weights to be applied row-wise to the resulting matrix. |
A Matrix::sparseMatrix
object.
Finn Lindgren finn.lindgren@gmail.com
fm_row_kron(rbind(c(1, 1, 0), c(0, 1, 1)), rbind(c(1, 2), c(3, 4)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.