is.positive.definite {calibrator}R Documentation

Is a matrix positive definite?

Description

Returns TRUE if and only if a matrix is positive definite.

Usage

is.positive.definite(a, ...)

Arguments

a

Matrix to be tested

...

Extra arguments passed to eigen(), such as symmetric.

Details

A wrapper for eigen() (a matrix is positive definite if all its eigenvalues are positive). This function is included for convenience only.

Author(s)

Robin K. S. Hankin

Examples

is.positive.definite(diag(3),sym=TRUE)
is.positive.definite(diag(6)-0.1)

[Package calibrator version 1.2-8 Index]