Description Usage Arguments Value Author(s) References Examples
Checks if a square matrix is invertible.
1 | is.invertible(X, tol = 1e-08, stop = FALSE)
|
X |
Numeric matrix. Square matrix. |
tol |
Numeric. Tolerance. |
stop |
Logical.
If |
Returns TRUE
if the matrix is invertible.
Returns FALSE
if the matrix is not invertible, that is, singular.
Ivan Jacob Agaloos Pesigan
Wikipedia: Invertible Matrix Wikipedia: Singular Matrix
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.invertible(X = Sigma)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.