rnk | R Documentation |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.