Learn R Programming

fastLogisticRegressionWrap (version 1.2.0)

eigen_det: A fast det(X) function

Description

Via the eigen package

Usage

eigen_det(X, num_cores = 1)

Value

The determinant as a scalar numeric value

Arguments

X

A numeric matrix of size p x p

num_cores

The number of cores to use. Unless p is large, keep to the default of 1.

Examples

Run this code
  p = 30
  eigen_det(matrix(rnorm(p^2), nrow = p))

Run the code above in your browser using DataLab