is_invertible: Check if a matrix is invertible

Description Usage Arguments Value Examples

Description

Checks a matrix to see if it is invertible.

Usage

1

Arguments

x

matrix: numeric matrix which should be checked to see if it is invertible.

Value

logical: TRUE if the supplied matrix is invertible, FALSE otherwise.

Examples

1
2
3
is_invertible(matrix(c(1, 2, 2, 1), 2, 2))  # => TRUE

is_invertible(matrix(c(1, 1, 1, 1), 2, 2))  # => FALSE

toniprice/jutebag documentation built on May 12, 2019, 4:39 a.m.