matrix.kronecker_eye | R Documentation |
Creates a Kronecker product with an identity matrix.
matrix.kronecker_eye(mat, K = 1, n_threads = 1)
mat |
The matrix to view as a Kronecker product. |
K |
Dimension of the identity matrix (default is 1, which does essentially nothing). |
n_threads |
Number of threads. |
Kronecker product with identity matrix. If mat
is n x p, the the resulting matrix will be nK x np.
The object is an S4 class with methods for efficient computation by adelie.
James Yang, Trevor Hastie, and Balasubramanian Narasimhan
Maintainer: Trevor Hastie hastie@stanford.edu
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.