1 SUBROUTINE cmmtcadd( M, N, ALPHA, A, LDA, BETA, B, LDB )
13 COMPLEX A( LDA, * ), B( LDB, * )
70 parameter( one = ( 1.0e+0, 0.0e+0 ),
71 $ zero = ( 0.0e+0, 0.0e+0 ) )
85 IF( alpha.EQ.one )
THEN
86 IF( beta.EQ.zero )
THEN
89 b( j, i ) = conjg( a( i, j ) )
92 ELSE IF( beta.NE.one )
THEN
95 b( j, i ) = conjg( a( i, j ) ) + beta * b( j, i )
101 b( j, i ) = conjg( a( i, j ) ) + b( j, i )
105 ELSE IF( alpha.NE.zero )
THEN
106 IF( beta.EQ.zero )
THEN
109 b( j, i ) = alpha * conjg( a( i, j ) )
112 ELSE IF( beta.NE.one )
THEN
115 b( j, i ) = alpha * conjg( a( i, j ) ) +
122 b( j, i ) = alpha * conjg( a( i, j ) ) + b( j, i )
127 IF( beta.EQ.zero )
THEN
133 ELSE IF( beta.NE.one )
THEN
135 CALL cscal( n, beta, b( 1, j ), 1 )
143 IF( alpha.EQ.one )
THEN
144 IF( beta.EQ.zero )
THEN
147 b( i, j ) = conjg( a( j, i ) )
150 ELSE IF( beta.NE.one )
THEN
153 b( i, j ) = conjg( a( j, i ) ) + beta * b( i, j )
159 b( i, j ) = conjg( a( j, i ) ) + b( i, j )
163 ELSE IF( alpha.NE.zero )
THEN
164 IF( beta.EQ.zero )
THEN
167 b( i, j ) = alpha * conjg( a( j, i ) )
170 ELSE IF( beta.NE.one )
THEN
173 b( i, j ) = alpha * conjg( a( j, i ) ) +
180 b( i, j ) = alpha * conjg( a( j, i ) ) + b( i, j )
185 IF( beta.EQ.zero )
THEN
191 ELSE IF( beta.NE.one )
THEN
193 CALL cscal( n, beta, b( 1, j ), 1 )