Google
 

Trailing-Edge - PDP-10 Archives - decuslib20-02 - decus/20-0026/srma.doc
There are 2 other files named srma.doc in the archive. Click here to see a list.
SUBROUTINE SRMA

PURPOSE
   MULTIPLY ROW OF MATRIX BY A SCALAR AND ADD TO ANOTHER ROW
   OF THE SAME MATRIX

USAGE
   CALL SRMA(A,C,N,M,LA,LB)

DESCRIPTION OF PARAMETERS
   A  - NAME OF MATRIX
   C  - SCALAR
   N  - NUMBER OF ROWS IN A
   M  - NUMBER OF COLUMNS IN A
   LA - ROW IN A TO BE MULTIPLIED BY SCALAR
   LB - ROW IN A TO WHICH PRODUCT IS ADDED
	IF 0 IS SPECIFIED, PRODUCT REPLACES ELEMENTS IN ROW LA

REMARKS
   MATRIX A MUST BE A GENERAL MATRIX

SUBROUTINES AND FUNCTION SUBPROGRAMS REQUIRED
   NONE

METHOD
   EACH ELEMENT OF ROW LA IS MULTIPLIED BY SCALAR C AND THE
   PRODUCT IS ADDED TO THE CORRESPONDING ELEMENT OF ROW LB.
   ROW LA REMAINS UNAFFECTED BY THE OPERATION.
   IF PARAMETER LB CONTAINS ZERO, MULTIPLICATION BY THE SCALAR
   IS PERFORMED AND THE PRODUCT REPLACES ELEMENTS IN ROW LA.