1 SUBROUTINE smmddac( M, N, ALPHA, A, LDA, BETA, B, LDB )
13 REAL A( LDA, * ), B( LDB, * )
69 parameter( one = 1.0e+0, zero = 0.0e+0 )
75 EXTERNAL saxpy, scopy, sscal
79 IF( beta.EQ.one )
THEN
80 IF( alpha.EQ.zero )
THEN
82 CALL scopy( m, b( 1, j ), 1, a( 1, j ), 1 )
87 ELSE IF( alpha.NE.one )
THEN
90 a( i, j ) = b( i, j ) + alpha * a( i, j )
95 CALL saxpy( m, one, b( 1, j ), 1, a( 1, j ), 1 )
101 ELSE IF( beta.NE.zero )
THEN
102 IF( alpha.EQ.zero )
THEN
105 a( i, j ) = beta * b( i, j )
108 ELSE IF( alpha.NE.one )
THEN
111 a( i, j ) = beta * b( i, j ) + alpha * a( i, j )
116 CALL saxpy( m, beta, b( 1, j ), 1, a( 1, j ), 1 )
123 IF( alpha.EQ.zero )
THEN
129 ELSE IF( alpha.NE.one )
THEN
131 CALL sscal( m, alpha, a( 1, j ), 1 )