APLX Help : Help on APL language : APL Primitives : ⍴ Shape of




Oneargument form See also twoargument form Reshape Enquires about the shape of each dimension of the data in the righthand argument. See also ⍴ 95 100 82 74 2 (A vector has 1 dimension, length. 5 This vector is 5 elements long.) ⍴ 'SEA SCOUT' (Counting the space, this vector is 9 9 elements long) ⍴ 'SEA' 'SCOUT' (Two element nested vector) 2 TABLE (A matrix has two dimensions, height, 1 3 5 7 9 which is the number of rows, and 2 4 6 8 0 width, which is the number of 8 6 4 2 1 columns) ⍴ TABLE 3 5 (This matrix has 3 rows and 5 columns) ⍴ 501 (A single number or letter is like a point. It has no dimensions so ⍴ ⍴⍴501 displays no answer, i.e. It returns a 0 vector of size 0  an empty vector. An empty vector, being a vector, has a size of 0) 

APLX Help : Help on APL language : APL Primitives : ⍴ Shape of

Copyright © 19962010 MicroAPL Ltd