Compute the rank of a matrix using the singular value decomposition (SVD)
method.
Usage
matrix_rank(x, tol)
"matrix_rank"(x, tol)
"matrix_rank"(x, tol)
"matrix_rank"(x, tol)
Arguments
x
an object that inherits from class "matrix".
tol
Threshold below which SVD values are considered zero.
Details
The singular value decomposition method simply computes the SVD of x
and returns the number of singular values of x that are greater than
tol. See the function rankMatrix in package
Matrix for alternative methods.