is.posDef: Positive definited matrices

View source: R/is.posDef.R

is.posDefR Documentation

Positive definited matrices

Description

Checks if a given matrix is positive definited

Usage

is.posDef(matrix)

Arguments

matrix

a (non-empty) numeric matrix of data values.

Value

A logical value: True/False.

Examples

A <- matrix(c(1,2,2,1), nrow = 2, byrow = TRUE)
is.posDef(A)

B <- matrix(c(1,2,3,3,1,2,1,2,1), nrow = 3, byrow = TRUE)
is.posDef(B)


stats4teaching documentation built on Oct. 4, 2022, 9:06 a.m.