1 SUBROUTINE zmmdda( 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 ) )
76 EXTERNAL zaxpy, zcopy, zscal
80 IF( beta.EQ.one )
THEN
81 IF( alpha.EQ.zero )
THEN
83 CALL zcopy( m, b( 1, j ), 1, a( 1, j ), 1 )
88 ELSE IF( alpha.NE.one )
THEN
91 a( i, j ) = b( i, j ) + alpha * a( i, j )
96 CALL zaxpy( m, one, b( 1, j ), 1, a( 1, j ), 1 )
102 ELSE IF( beta.NE.zero )
THEN
103 IF( alpha.EQ.zero )
THEN
106 a( i, j ) = beta * b( i, j )
109 ELSE IF( alpha.NE.one )
THEN
112 a( i, j ) = beta * b( i, j ) + alpha * a( i, j )
117 CALL zaxpy( m, beta, b( 1, j ), 1, a( 1, j ), 1 )
124 IF( alpha.EQ.zero )
THEN
130 ELSE IF( alpha.NE.one )
THEN
132 CALL zscal( m, alpha, a( 1, j ), 1 )