in favour of fmesher::fm_row_kron()
.
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.
row_kron(M1, M2, repl = NULL, n.repl = NULL, weights = NULL)
A Matrix::sparseMatrix
object.
A matrix that can be transformed into a sparse Matrix.
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
The maximum replicate index, in the sense used in
INLA::inla.spde.make.A()
.
Optional scaling weights to be applied row-wise to the resulting matrix.
Finn Lindgren finn.lindgren@gmail.com