EasyManuals Logo
Home>IBM>Laptop>5100

IBM 5100 Basic Reference Manual

IBM 5100
187 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #132 background imageLoading...
Page #132 background image
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.

Table of Contents

Other manuals for IBM 5100

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM 5100 and is the answer not in the manual?

IBM 5100 Specifications

General IconGeneral
BrandIBM
Model5100
CategoryLaptop
LanguageEnglish

Related product manuals