powered by
Return the rank of a matrix. Not to be confused with the R function rank.
rnk(G, tol = 1e-14)
integer, number of non-zero singular values
Matrix
machine tolerance for small numbers
Jonathan M. Lees<jonathan.lees@unc.edu>
Number of singular values greater than tol.
svd
hilbert <- function(n) { i <- 1:n; 1 / outer(i - 1, i, "+") } X <- hilbert(9)[,1:6] rnk(X)
Run the code above in your browser using DataLab