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 #39 background imageLoading...
Page #39 background image
(
(
(
,,,
/
Finding the Shape
of
An
Array
Once you
have
generated
an
array, you can
find
its
shape
(number
of
elements in
each
coordinate)
by
specifying p (shape function)
with
only
a right argument which
is
the name
of
the array.
If
A
is
a vector
with
six elements
and
you enter
pA,
the
re-
sult
is
one number
because
A
is
a one-dimensional array. The number
is
6, the
length (number
of
elements)
of
A's one dimension. The result
of
the
shape
function
is
always a vector:
A~111
222
333
444
555
666
~)
(.1
The
shape
of
a
matrix
or
N-rank array
is
found the
same
way:
123
M~2
3p1
2 3
1+
5 6
M
'+
5 6
~)M
2 3
'i
.:..
R~2
3
4pi
2 3
1+
5 6 7 B
R
12~3ll·
~5
6
·7
B
1 2 3
Lt·
~5
6
"7
B
1
2
3
Lt·
~.)
t)
"7
B
pR
3 4
I n
some
cases,
it
might
be
necessary
to
know
just the rank, the number
of
coordi-
nates (or
indice~)
of
an
array. The rank
can
be
found
by
entering pp
(shape
of
the
shape)
and a right argument, which
is
the name
of
the array:
Ai-lll
222
~5~53
4'+'+
Bf·2
3p1
2
3
'+
~i
6
Ci-2
~3
I.~~)
1
:~
3
,+
~)
(jA
6
ppA
1
pH
2 3
p(jB
2
pC
2
3
1+
ppC
3
35

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