1 SUBROUTINE smmddact( M, N, ALPHA, A, LDA, BETA, B, LDB )
13 REAL A( LDA, * ), B( LDB, * )
70 parameter( one = 1.0e+0, zero = 0.0e+0 )
76 EXTERNAL saxpy, scopy, sscal
81 IF( beta.EQ.one )
THEN
82 IF( alpha.EQ.zero )
THEN
84 CALL scopy( m, b( j, 1 ), ldb, a( 1, j ), 1 )
89 ELSE IF( alpha.NE.one )
THEN
92 a( i, j ) = b( j, i ) + alpha * a( i, j )
97 CALL saxpy( m, one, b( j, 1 ), ldb, a( 1, j ), 1 )
103 ELSE IF( beta.NE.zero )
THEN
104 IF( alpha.EQ.zero )
THEN
107 a( i, j ) = beta * b( j, i )
110 ELSE IF( alpha.NE.one )
THEN
113 a( i, j ) = beta * b( j, i ) + alpha * a( i, j )
118 CALL saxpy( m, beta, b( j, 1 ), ldb, a( 1, j ), 1 )
125 IF( alpha.EQ.zero )
THEN
131 ELSE IF( alpha.NE.one )
THEN
133 CALL sscal( m, alpha, a( 1, j ), 1 )
141 IF( beta.EQ.one )
THEN
142 IF( alpha.EQ.zero )
THEN
144 CALL scopy( n, b( 1, j ), 1, a( j, 1 ), lda )
149 ELSE IF( alpha.NE.one )
THEN
152 a( j, i ) = b( i, j ) + alpha * a( j, i )
157 CALL saxpy( n, one, b( 1, j ), 1, a( j, 1 ), lda )
163 ELSE IF( beta.NE.zero )
THEN
164 IF( alpha.EQ.zero )
THEN
167 a( j, i ) = beta * b( i, j )
170 ELSE IF( alpha.NE.one )
THEN
173 a( j, i ) = beta * b( i, j ) + alpha * a( j, i )
178 CALL saxpy( n, beta, b( 1, j ), 1, a( j, 1 ), lda )
185 IF( alpha.EQ.zero )
THEN
191 ELSE IF( alpha.NE.one )
THEN
193 CALL sscal( m, alpha, a( 1, j ), 1 )