MatSub FUNCTION
MatSubI%
MatSubL%
MatSubS%
MatSubD%
MatSubC%
Syntax
errcode% = MatSubtype%(matrix1( ), matrix2( ))
Remarks
The MatSubtype% procedure performs matrix subtraction of two matrixes whose
row (m) and column (n) dimensions are identical. The input matrixes contain
values whose data type is defined by the last letter in the procedure name
(I, L, S, D, or C). The first matrix is subtracted from the second and the
difference is returned in matrix1( ), replacing any previous values. The
solution matrix contains values of the same data type as the input matrixes.
Once the procedure has been performed, the contents of matrix2( ) are
meaningless.
MatSubtype% uses the following arguments.
matrix1( )
----------
A matrix consisting of m x n dimensions.
matrix2( )
----------
A matrix consisting of m x n dimensions.
A result code is returned that indicates the success or failure of the
FUNCTION procedure. Possible result codes are.
0 Normal completion. No error occurred.
- 4 Matrixes not of the same dimension. That is, there are not the same
number of rows in matrix1 as there are in matrix2 or there are not the same
number of columns in matrix1 as in matrix2.