Eigen_det: Determinant of a matrix

View source: R/EigenR.R

Eigen_detR Documentation

Determinant of a matrix

Description

Determinant of a real or complex matrix.

Usage

Eigen_det(M)

Arguments

M

a square matrix or SparseMatrix, real or complex

Value

The determinant of M.

Examples

set.seed(666)
M <- matrix(rpois(25, 1), 5L, 5L)
Eigen_det(M)
# determinants of complex matrices are supported:
Eigen_det(M + 1i * M)
# as well as determinants of sparse matrices:
Eigen_det(asSparseMatrix(M))
Eigen_det(asSparseMatrix(M + 1i * M))

EigenR documentation built on May 18, 2022, 9:05 a.m.