View source: R/is.singular.matrix.R
| is.singular.matrix | R Documentation |
This function returns TRUE is the matrix argument is singular
and FALSE otherwise.
is.singular.matrix(x, tol = 1e-08)
x |
a numeric square matrix |
tol |
a numeric tolerance level usually left out |
The determinant of the matrix x is first computed.
If the absolute value of the determinant is less than the given
tolerance level, then a TRUE value is returned.
Otherwise, a FALSE value is returned.
A TRUE or FALSE value.
Frederick Novomestky fnovomes@poly.edu
Bellman, R. (1987). Matrix Analysis, Second edition, Classics in Applied Mathematics, Society for Industrial and Applied Mathematics.
Horn, R. A. and C. R. Johnson (1990). Matrix Analysis, Cambridge University Press.
is.non.singular.matrix
A <- diag( 1, 3 ) is.singular.matrix( A ) B <- matrix( c( 0, 0, 3, 4 ), nrow=2, byrow=TRUE ) is.singular.matrix( B )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.