checkPosDef: Check a matrix for positive definitness

View source: R/mvrnorm.R

checkPosDefR Documentation

Check a matrix for positive definitness

Description

Uses eigen to check positive definiteness. Follows example used in MASS package by W. N. Venables and Brian D. Ripley

Usage

checkPosDef(X, tol = 1e-06)

Arguments

X

A matrix

tol

Tolerance (closeness to 0 required to declare failure)

Value

TRUE or FALSE

Author(s)

Paul E. Johnson pauljohn@ku.edu


rockchalk documentation built on Aug. 6, 2022, 5:05 p.m.