Rank of Matrix
Return the rank of a matrix. Not to be confused with the R function rank.
rnk(G, tol = 1e-14)
G |
Matrix |
tol |
machine tolerance for small numbers |
Number of singular values greater than tol.
integer, number of non-zero singular values
duplicate the matlab function rank
Jonathan M. Lees<jonathan.lees@unc.edu>
svd
hilbert <- function(n) { i <- 1:n; 1 / outer(i - 1, i, "+") } X <- hilbert(9)[,1:6] rnk(X)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.