Returns an array of column numbers.
COLNOS(a)
a |
- |
A series or table. |
An array of size(a).
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}}
COLNOS is used by several of the matrix dissection routines to select specific regions of an array.
COLNOS(a) == ROWIDX(a)