rk | R Documentation |
Computes the rank of a matrix.
rk(x, method = c("qr", "chol"))
x |
a numeric matrix. |
method |
a character string. For |
The function rk
computes the rank of a matrix which is the
dimension of the range of the matrix corresponding to the number of
linearly independent rows or columns of the matrix, or to the number
of nonzero singular values.
The rank of a matrix is also named linear map.
Golub, van Loan, (1996); Matrix Computations, 3rd edition. Johns Hopkins University Press.
## Create Pascal Matrix:
P = pascal(5)
P
## Compute the Rank:
rk(P)
rk(P, "chol")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.