powered by
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)
A Matrix::sparseMatrix object.
Matrix::sparseMatrix
A matrix that can be transformed into a sparse Matrix.
An optional index vector. For each entry, specifies which replicate the row belongs to, in the sense used in INLA::inla.spde.make.A
INLA::inla.spde.make.A
The maximum replicate index, in the sense used in INLA::inla.spde.make.A().
INLA::inla.spde.make.A()
Optional scaling weights to be applied row-wise to the resulting matrix.
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)))
Run the code above in your browser using DataLab