| Library: | xplore |
| See also: | svd eigsm sum |
| Macro: | rankm | |
| Description: | Computes the rank r of a matrix x. |
| Usage: | r = rankm(x) | |
| Input: | ||
| x | n x d matrix, | |
| Output: | ||
| r | integer, the rank of the matrix | |
library("xplore")
x = (1~0~0)|(0~2~0)|(0~0~3)|(0~0~4)
rankm(x)
Contents of r [1,] 3
| Library: | xplore |
| See also: | svd eigsm sum |