I
MAT
matrix-name [(rows, columns)] =
ION
124
',.
MAT ASSIGNMENT (IDENTITY FUNCTION)
This statement allows you
to
make a numeric matrix assume
the
form
of
an identity
matrix_ The syntax
of
the
statement
is
as
shown:
MAT
matrix-name [(rows, columns)] =
ION
where:
all
the parameters are the same as those for other
MAT
assignment statements,
and
ION
specifies identity matrix.
Each element
of
the
specified matrix for which
the
values
of
both subscripts are
equal, for example, A(2,2)
or
A(3,3),
is
assigned
the
integer value 1. All
other
elements, for example A(2,3)
or
A(3, 1), are assigned
the
value
O.
If redimension specifications follow the matrix name, the truncated integer portion
of
each expression value
in
rows, columns
is
used
to
redimension
the
matrix before
the assignment
of
1
or
0
to
each
of
its elements.
Notes
About
MAT (Identity Function)
• The matrix specified must be numeric.
• The specified numeric matrix must be a square matrix;
that
is,
the
number
of
rows
must equal
the
number
of
columns (after redimensioning, if any)_
•
If
redimension specifications are included,
the
rules under Redimensioning Arrays,
Chapter 3, must be followed.
/