Trailing-Edge
-
PDP-10 Archives
-
decuslib10-02
-
43,50145/msub.doc
There are 2 other files named msub.doc in the archive. Click here to see a list.
SUBROUTINE MSUB
PURPOSE
SUBTRACT TWO MATRICES ELEMENT BY ELEMENT TO FORM RESULTANT
MATRIX
USAGE
CALL MSUB(A,B,R,N,M,MSA,MSB)
DESCRIPTION OF PARAMETERS
A - NAME OF INPUT MATRIX
B - NAME OF INPUT MATRIX
R - NAME OF OUTPUT MATRIX
N - NUMBER OF ROWS IN A,B,R
M - NUMBER OF COLUMNS IN A,B,R
MSA - ONE DIGIT NUMBER FOR STORAGE MODE OF MATRIX A
0 - GENERAL
1 - SYMMETRIC
2 - DIAGONAL
MSB - SAME AS MSA EXCEPT FOR MATRIX B
REMARKS
NONE
SUBROUTINES AND FUNCTION SUBPROGRAMS REQUIRED
LOC
METHOD
STRUCTURE OF OUTPUT MATRIX IS FIRST DETERMINED. SUBTRACTION
OF MATRIX B ELEMENTS FROM CORRESPONDING MATRIX A ELEMENTS
IS THEN PERFORMED.
THE FOLLOWING TABLE SHOWS THE STORAGE MODE OF THE OUTPUT
MATRIX FOR ALL COMBINATIONS OF INPUT MATRICES
A B R
GENERAL GENERAL GENERAL
GENERAL SYMMETRIC GENERAL
GENERAL DIAGONAL GENERAL
SYMMETRIC GENERAL GENERAL
SYMMETRIC SYMMETRIC SYMMETRIC
SYMMETRIC DIAGONAL SYMMETRIC
DIAGONAL GENERAL GENERAL
DIAGONAL SYMMETRIC SYMMETRIC
DIAGONAL DIAGONAL DIAGONAL