matrix.dense | R Documentation |
Creates a dense matrix object.
matrix.dense(mat, method = c("naive", "cov"), n_threads = 1)
mat |
The dense matrix. |
method |
Method type, with default |
n_threads |
Number of threads. |
Dense matrix. The object is an S4 class with methods for efficient computation by adelie.
Trevor Hastie and James Yang
Maintainer: Trevor Hastie hastie@stanford.edu
n <- 100
p <- 20
X_dense <- matrix(rnorm(n * p), n, p)
out <- matrix.dense(X_dense, method="naive")
A_dense <- t(X_dense) %*% X_dense
out <- matrix.dense(A_dense, method="cov")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.