Learn R Programming

spatial.gev.bma (version 1.0)

logdet: Returns the log determinant for a symmetric positive definite matrix.

Description

This internal function returns the log determinant of a positive definite matrix by using the trace of a the Cholesky trick. Its way faster than what you find in base.

Usage

logdet(A)

Arguments

A
A symmetric positive definite matrix.

Value

A scalar giving the log determinant of A