Learn R Programming

adelie (version 1.0.7)

matrix.eager_cov: Creates an eager covariance matrix.

Description

Creates an eager covariance matrix.

Usage

matrix.eager_cov(mat, n_threads = 1)

Value

The dense covariance matrix. This matrix is exactly t(mat)%*%mat, computed with some efficiency.

Arguments

mat

A dense matrix to be used with the gaussian_cov() solver.

n_threads

Number of threads.

Examples

Run this code
n <- 100
p <- 20
mat <- matrix(rnorm(n * p), n, p)
out <- matrix.eager_cov(mat)

Run the code above in your browser using DataLab