MAT
array-name [(rows, columns)] = TRN (array-name)
i128
MAT
ASSIGNMENT (TRANSPOSE FUNCTION)
This statement allows you
to
replace
the
elements
of
one array with the matrix
transpose
of
another array. The syntax
of
the
statement
is
as
shown:
MAT array-name [(rows, columns)]
= TRN (array-name)
where:
all
parameters
in
the
statement are
the
same
as
those for
other
MAT
assignment
statements, and TRN specifies
the
transpose function.
The transpose matrix
of
the array specified
to
the right
of
the
equal sign
is
assigned
to
the array specified
to
the left
of
the
equal sign. The values
in
column y of one
array become
the
values
in
row y
of
the
other
array.
If
redimension specifications follow
the
array name
to
the
left
of
the equal sign, the
truncated integer portion
of
each expression value
in
rows, columns
is
used
to
redi-
mension the array before values are assigned
to
it.
Notes
About
MAT (Transpose Function)
• Both arrays specified must be two-dimensional, and
the
number of rows
in
each
array must be equal
to
the number
of
columns
in
the
other
(after redimensioning,
if any). and
they
must
be
the same
type
(character
or
numeric).
• The same array cannot be used
on
both sides
of
the equal sign. This will cause
incorrect results.
•
If
the
redimension specifications are included, the rules under Redimensioning
Arrays, Chapter 3, must be followed.