is.semiposDef {stats4teaching}R Documentation

Semi-Positive definited matrices

Description

Checks if a given matrix is semi-positive definited.

Usage

is.semiposDef(matrix)

Arguments

matrix

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

Value

A logical value: True/False.

Examples

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

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


[Package stats4teaching version 0.1.0 Index]