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

 

COLNOS

Purpose:

Returns an array of column numbers.

Syntax:

COLNOS(a)

a

-

A series or table.

Returns:

An array of size(a).

Example:

W1: ones(3)

W2: colnos(W1)

 

W2 == {{1, 2, 3},

       {1, 2, 3}, 

       {1, 2, 3}} 

 

W1: zeros(3, 2)

W2: colnos(W1)

 

W2 == {{1, 2},

       {1, 2}, 

       {1, 2}} 

Remarks:

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

 

COLNOS(a) == ROWIDX(a)

See Also:

LOTRI

LOTRIX

ROWIDX

ROWNOS

UPTRI

UPTRIX