LENGTH

From STX Wiki
< Programmer Guide‎ | SPU Reference
Revision as of 07:31, 13 October 2015 by Jw (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Number of elements in A

[SPU LENGTH A OUT Y NROW NCOL N]

If A is a numerical data element (number, vector or matrix), the dimensions of A are stored in the outputs.

Out Description
Y number of rows; 1 if A is a number and >1 otherwise
NROW number of rows; 1 if A is a number and >1 otherwise
NCOL number of columns; 1 if A is a number or vector and >1 otherwise
N number of elements = number of rows * number of columns

Note: The output values are assigned during the SPU initialization and cannot be changed during execution.

See also

<SP-atoms>

Navigation menu

Personal tools