1 SUBROUTINE cmmdda( M, N, ALPHA, A, LDA, BETA, B, LDB )
13 COMPLEX A( LDA, * ), B( LDB, * )
69 parameter( one = ( 1.0e+0, 0.0e+0 ),
70 $ zero = ( 0.0e+0, 0.0e+0 ) )
76 EXTERNAL caxpy, ccopy, cscal
80 IF( beta.EQ.one )
THEN
81 IF( alpha.EQ.zero )
THEN
83 CALL ccopy( 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 caxpy( 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 caxpy( 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 cscal( m, alpha, a( 1, j ), 1 )