MAT
matrix-name [(rows [,columns]
)]
= (arith-exp) *matrix-name
122
MAT
ASSIGNMENT (SCALAR MULTIPLICATION)
This statement allows you
to
multiply
the
elements
of
a numeric matrix by
the
value
of
an arithmetic expression, and assign
the
resulting products
to
the
elements
of
another numeric matrix. The syntax
of
this statement
is
as
shown:
MAT
matrix-name [(rows [,columns]
)]
= (arith-exp) *matrix-name
where:
matrix-name
is
the name
of
a numeric matrix.
rows, columns are redimension specifications (optional).
(arith~exp)
is
a scalar arithmetic expression, which must
be
enclosed
in
parentheses.
The scalar expression
is
evaluated, and each element
in
the
matrix
to
the
right
of
the
equal sign
is
multiplied by
the
value
of
the
expression. The result
is
assigned
to
the
corresponding elements
of
the
matrix
to
the
left
of
the
equal sign.
If
redimension specifications follow
the
matrix name
to
the left
of
the
equal sign,
the
truncated integer portion
of
each expression value
in
rows, columns
is
used
to
redimension
the
matrix before
the
multiplication.
Notes
About
MAT
(Scalar Multiplication)
• Both matrices specified must be numeric.
• Both matrices specified must have identical dimensions (after redimensioning,
if any).
•
If
redimension specifications are included,
the
rules under Redimensioning
Arrays,
Chapter 3, must be followed.
I
\