DADiSP Worksheet Functions > Function Categories > Matrix Math and Special Matrices > RANK

 

RANK

Purpose:

Estimates the number of independent rows or columns of an array.

Syntax:

RANK(a, tol)

a

-

An input array. Defaults to the current series.

tol

-

Optional Real. Singular value tolerance. Defaults to: max(rows, cols) * max(singular values) * eps

Returns:

An integer, the estimated rank.

Example:

W1: rand(3)

W2: ravel(W1, W1)

W3: rand(6)

 

rank(w1) returns 3.

rank(w2) returns 6.

rank(w3) returns 3.

Remarks:

RANK use SVD to compute the singular values of an array.

See Also:

COND

ORTH

NORM

RCOND

SVD