The instruction p pB yields the rank (shape of the shape, or, number of coordinates)
of B:
i:: A
W
B A R
Dyadic (Two-Argument) Form: Reshape (Structure) AD B
The reshape function forms an array of the shape specified by argument A using
element(s1 from argument B. The elements of argument B are placed into the
array in row order. If there are not enough elements in argument B to fill the
array, the elements are repeated. If there are more elements in argument B than
are required to fill the array, only the required number of elements are used.
Argument A must be a positive integer or vector of positive integers. The number
of elements in argument A is equal to the number of coordinates, or the rank, of
the result. Argument B can be any variable or constant. If all of the elements of
argument A are nonzero, then B cannot be an empty array:
76
___-
I I
i:.
The , Function: Ravel, Catenate, Laminate
Monadic (One-Argument) Form: Ravel ,B
The ravel function results in a vector containing the elements of argument 6. If
argument 6 is an array, the elements in the vector are taken from argument 6
in row order. Argument B can be a scalar, vector, or other array. The resulting
vector contains the same number of elements as argument 6:
Dyadic (Two-Argument) Form: Catenate or Laminate A,[Il B
The function is catenafe when the [I] entry (index entry) is an integer and laminate
when the [I] entry is a fraction.
77
Previous Page Next Page