1 SUBROUTINE zmmcadd( M, N, ALPHA, A, LDA, BETA, B, LDB )
10 COMPLEX*16 ALPHA, BETA
13 COMPLEX*16 A( LDA, * ), B( LDB, * )
69 parameter( one = ( 1.0d+0, 0.0d+0 ),
70 $ zero = ( 0.0d+0, 0.0d+0 ) )
83 IF( alpha.EQ.one )
THEN
84 IF( beta.EQ.zero )
THEN
87 b( i, j ) = dconjg( a( i, j ) )
90 ELSE IF( beta.NE.one )
THEN
93 b( i, j ) = dconjg( a( i, j ) ) + beta * b( i, j )
99 b( i, j ) = dconjg( a( i, j ) ) + b( i, j )
103 ELSE IF( alpha.NE.zero )
THEN
104 IF( beta.EQ.zero )
THEN
107 b( i, j ) = alpha * dconjg( a( i, j ) )
110 ELSE IF( beta.NE.one )
THEN
113 b( i, j ) = alpha * dconjg( a( i, j ) ) +
120 b( i, j ) = alpha * dconjg( a( i, j ) ) + b( i, j )
125 IF( beta.EQ.zero )
THEN
131 ELSE IF( beta.NE.one )
THEN
133 CALL zscal( m, beta, b( 1, j ), 1 )