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

 

ROWNOS

Purpose:

Returns an array of row numbers.

Syntax:

ROWNOS(a)

a

-

A series or table.

Returns:

An array of size(a).

Example:

W1: ones(3)

W2: rownos(W1)

 

W2 == {{1, 1, 1},

       {2, 2, 2}, 

       {3, 3, 3}} 

 

W1: zeros(3, 2)

W2: rownos(W1)

 

W2 == {{1, 1},

       {2, 2}, 

       {3, 3}} 

Remarks:

ROWNOS is used by several of the matrix dissection routines to select specific regions of an array.

 

ROWNOS(a) = COLIDX(a)

See Also:

COLIDX

COLNOS

LOTRI

LOTRIX

UPTRI

UPTRIX