Learn R Programming

msos (version 1.2.0)

logdet: Log Determinant

Description

Takes the log determinant of a square matrix. Log is that of base e sometimes referred to as ln().

Usage

logdet(a)

Arguments

a

Square matrix (\(Q \times Q\))

Value

A single-value double.

See Also

tr and fillout

Examples

Run this code
# NOT RUN {
# Identity Matrix of size 2
logdet(diag(c(2, 2)))
# }

Run the code above in your browser using DataLab