Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: xplore
See also: svd eigsm sum

Quantlet: 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

Example:
library("xplore")
x =(1~0~0)|(0~2~0)|(0~0~3)|(0~0~4)
rankm(x)

Result:
Contents of r
[1,]        3



Author: C. Hafner, S. Sperlich, W. Haerdle, M. Mueller, 19980519 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006