is.singular.matrix: Singular Matrix

Description Usage Arguments Value Author(s) Examples

View source: R/mat.R

Description

Checks if a square matrix is not invertible.

Usage

1
is.singular.matrix(x, tol = 1e-08)

Arguments

x

A numeric square matrix.

tol

Tolerance.

Value

Returns TRUE if the matrix is singular or not invertible, meaning the determinant of the matrix is 0.

Author(s)

Ivan Jacob Agaloos Pesigan

Examples

1
2
3
4
5
6
7
8
9
Sigma <- matrix(
  data = c(
    225, 112.50, 56.25,
    112.5, 225, 112.5,
    56.25, 112.50, 225
  ),
  ncol = 3
)
is.singular.matrix(Sigma)

jeksterslabds/jeksterslabRds documentation built on July 16, 2020, 3:41 p.m.