matrix.lazy_cov | R Documentation |
Creates a lazy covariance matrix.
matrix.lazy_cov(mat, n_threads = 1)
mat |
A dense data matrix to be used with the |
n_threads |
Number of threads. |
Lazy covariance matrix. This is essentially the same matrix, but with a setup to create covariance terms as needed on the fly. 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
mat <- matrix(rnorm(n * p), n, p)
out <- matrix.lazy_cov(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.