1 SUBROUTINE immtadd( M, N, ALPHA, A, LDA, BETA, B, LDB )
13 INTEGER A( LDA, * ), B( LDB, * )
70 parameter( one = 1, zero = 0 )
78 IF( alpha.EQ.one )
THEN
79 IF( beta.EQ.zero )
THEN
85 ELSE IF( beta.NE.one )
THEN
88 b( j, i ) = a( i, j ) + beta * b( j, i )
94 b( j, i ) = a( i, j ) + b( j, i )
98 ELSE IF( alpha.NE.zero )
THEN
99 IF( beta.EQ.zero )
THEN
102 b( j, i ) = alpha * a( i, j )
105 ELSE IF( beta.NE.one )
THEN
108 b( j, i ) = alpha * a( i, j ) + beta * b( j, i )
114 b( j, i ) = alpha * a( i, j ) + b( j, i )
119 IF( beta.EQ.zero )
THEN
125 ELSE IF( beta.NE.one )
THEN
128 b( i, j ) = beta * b( i, j )
134 IF( alpha.EQ.one )
THEN
135 IF( beta.EQ.zero )
THEN
138 b( i, j ) = a( j, i )
141 ELSE IF( beta.NE.one )
THEN
144 b( i, j ) = a( j, i ) + beta * b( i, j )
150 b( i, j ) = a( j, i ) + b( i, j )
154 ELSE IF( alpha.NE.zero )
THEN
155 IF( beta.EQ.zero )
THEN
158 b( i, j ) = alpha * a( j, i )
161 ELSE IF( beta.NE.one )
THEN
164 b( i, j ) = alpha * a( j, i ) + beta * b( i, j )
170 b( i, j ) = alpha * a( j, i ) + b( i, j )
175 IF( beta.EQ.zero )
THEN
181 ELSE IF( beta.NE.one )
THEN
184 b( i, j ) = beta * b( i, j )