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