matrix.dense {adelie}R Documentation

Creates a viewer of a dense matrix.

Description

Creates a viewer of a dense matrix.

Usage

matrix.dense(mat, method = "naive", n_threads = 1)

Arguments

mat

The dense matrix.

method

Method type.

n_threads

Number of threads.

Value

Dense matrix.

Examples

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")

[Package adelie version 1.0.1 Index]