log_determinant: A function to calculate log of the determinant of a matrix

Description Usage Arguments

View source: R/log_determinant.R

Description

This function calculates the log (natural base) of the determinant of a matrix in order to avoid overflow for some large determinant. The matrix has to be symmetric positive-definite in order to use the cholesky decomposition.

Usage

1

Arguments

x

A symmetric positive-definite square matrix.


kelvinyangli/mbmml documentation built on June 29, 2020, 3:12 a.m.