is_invertible: Check if a matrix is invertible

View source: R/is_invertible.R

is_invertibleR Documentation

Check if a matrix is invertible

Description

Checks a matrix to see if it is invertible.

Usage

is_invertible(x)

Arguments

x

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

Value

TRUE if the supplied matrix is invertible, FALSE otherwise.

Examples

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

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


toniprice/jute documentation built on Jan. 11, 2023, 8:23 a.m.