matrix.kronecker_eye {adelie} | R Documentation |
Creates a Kronecker product with identity matrix.
Description
Creates a Kronecker product with identity matrix.
Usage
matrix.kronecker_eye(mat, K, n_threads = 1)
Arguments
mat |
The matrix to view as a Kronecker product. |
K |
Dimension of the identity matrix. |
n_threads |
Number of threads. |
Value
Kronecker product with identity matrix.
Examples
n <- 100
p <- 20
K <- 2
mat <- matrix(rnorm(n * p), n, p)
out <- matrix.kronecker_eye(mat, K)
mat <- matrix.dense(mat)
out <- matrix.kronecker_eye(mat, K)
[Package adelie version 1.0.1 Index]