Mat Assignment (Transpose Function) - IBM 5110 Basic Reference Manual

Hide thumbs Also See for 5110:
Table of Contents

Advertisement

o
C)
C
"
I
c
o
MAT array-name [(rows, columns) ]
=
TRN (array-name)
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 above,
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
~rray
name to the left of the equal
sign, the truncated integer portion of each expression value in rows, columns is
used to redimension 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 in Chapter 3 must be followed.
- - - - - - . _ - _
..
__
._-_
..........
_ - - - - - - - -
BASIC Statements
193

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents