View source: R/is_invertible.R
is_invertible | R Documentation |
Test if a matrix A is invertible
is_invertible(A)
A |
a matrix |
TRUE if A is invertible and FALSE if A is not invertible
library(dasc2594) # An invertible matrix A <- diag(4) is_invertible(A) # returns TRUE # A non-invertible matrix A <- matrix(1, 3, 3) is_invertible(A) # returns FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.