• Initialize
• Transpose
• Copy
• Mathematical
• Logical
Examples include:
• Process a variable array without use of For/Next
• Create boolean arrays based on comparisons with another array or a scalar
variable
• Copy a dimension to a new location
• Perform logical operations for each element in a dimension using scalar or
similarly located elements in different arrays and dimensions
Note Array-assigned expression notation is an alternative to For/Next
instructions, typically for use by more advanced programmers. It will probably
not reduce processing time significantly over the use of For/Next. To reduce
processing time, consider using the Move() instruction, which requires more
intensive programming.
Syntax rules:
• Definitions:
o Least-significant dimension — the last or right-most figure in an array
index. For example, in the array array(a,b), b is the least-significant
dimension index. In the array array(a,b,c), c is least significant.
o Negate — place a negative or minus sign (-) before the array index. For
example, when negating the least-significant dimension in array(a,b,c),
the notion is array(a,b,-c)
• An empty set of parentheses designates an array-assigned expression. For
example, reference array() or array(a,b,c)().
• Only one dimension of the array is operated on at a time.
• To select the dimension to be operated on, negate the dimension of index of
interest.
• Operations will not cross dimensions. An operation begins at the specified
starting point and continues to one of the following:
o End of the dimension
o Where the dimension is specified by a negative
o Where the dimension is the least significant (default)
• If indices are not specified, or none have been preceded with a minus sign,
the least significant dimension of the array is assumed.
• The offset into the dimension being accessed is given by (a,b,c).
• If the array is referenced as array(), the starting point is array(1,1,1) and the
least significant dimension is accessed. For example, if the array is declared
as test(a,b,c), and subsequently referenced as test(), then the starting point is
test(1,1,1) and dimension c is accessed.
189