is.singular.matrix: Test for singular square matrix

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

This function returns TRUE is the matrix argument is singular and FALSE otherwise.

Usage

1
is.singular.matrix(x, tol = 1e-08)

Arguments

x

a numeric square matrix

tol

a numeric tolerance level usually left out

Details

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.

Value

A TRUE or FALSE value.

Author(s)

Frederick Novomestky fnovomes@poly.edu

References

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.

See Also

is.non.singular.matrix

Examples

1
2
3
4
A <- diag( 1, 3 )
is.singular.matrix( A )
B <- matrix( c( 0, 0, 3, 4 ), nrow=2, byrow=TRUE )
is.singular.matrix( B )


Search within the matrixcalc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.