GET

From STX Wiki
< Programmer Guide‎ | SPU Reference
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GET - extract a subset of input data

Extract a subset of input data.

if j is given: vector: y[0..j-1] = x[i..i+j-1]
otherwise number: y = x[j]
Usage:

GET x i j

GET x i

Usage:
x vector
i element index
j number of elements
Outputs:
y number or vector