EasyManuals Logo
Home>IBM>Laptop>5100

IBM 5100 Apl Reference Manual

IBM 5100
228 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 #38 background imageLoading...
Page #38 background image
34
To
generate
a
matrix,
you
specify X (left
argument)
as
two
numbers,
which
are
the
lengths
of
the
two
coordinates.
The
first
number
in X
is
the
length
of
the
first co-
ordinate,
or
number
of
rows, and
the
second
number
is
the
length
of
the
second
coordinate,
or
number
of
columns.
The
following
example
shows
how
a
matrix
is
generated:
M~2
3pi
2 3 4 5 6
t-1
:1.
2 3
I.~
~;
6
(o1BCB
EFGH
ABC
DEF
t.1f-2
1+
r
J
I
ABCDEFGH
I
M
M
:1.
i-
2
:.3
p
t1
Mi
Note
that
the
values
in
the
right
argument
are arranged
in
row
order
in
the
arrays. If
the
right
argument
has
more
than
one
row,
the
elements
are
taken
from
the
right
argument
in
row
order.
The
rank
of an
array
is
the
number
of
coordinates
it has,
or
the
number
of
indices
required
to
locate
any
element
within
that
array. Scalars are
rank
O.
Vectors have
a
rank
of
1,
matrices have a
rank
of
2,
and
N-rank arrays have a
rank
from
3
to
63
(where N
is
equal
to
the
rank). N-rank arrays, like matrices, are
generated
by
providing
as
the
left
argument
a
number
indicating
the
length
for
each
coordinate
(planes, rows,
and
columns).
The
following examples
show
how
to
generate
3-rank
arrays.
Note
that
the
elements
taken
from
the
right
argument
are arranged
in
row
order:
I~IBCD
EFGH
I,.JKI...
MNDP
f~I~ST
UVWX
AB
CD
EF
GH
IJ
1{1...
~1N
DP
GR
ST
UV
WX
A~'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
;.~
:5
lJ.
P(.~I
\.
____
2-plane, 3-row,
4-column
array
'+
3 2
f)l~
\\-
___
4-plane, 3-row,
2-column
array

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