113 SUBROUTINE clacrm( M, N, A, LDA, B, LDB, C, LDC, RWORK )
120 INTEGER LDA, LDB, LDC, M, N
123 REAL B( LDB, * ), RWORK( * )
124 COMPLEX A( LDA, * ), C( LDC, * )
131 parameter( one = 1.0e0, zero = 0.0e0 )
137 INTRINSIC aimag, cmplx, real
146 IF( ( m.EQ.0 ) .OR. ( n.EQ.0 ) )
151 rwork( ( j-1 )*m+i ) = real( a( i, j ) )
156 CALL sgemm(
'N',
'N', m, n, n, one, rwork, m, b, ldb, zero,
160 c( i, j ) = rwork( l+( j-1 )*m+i-1 )
166 rwork( ( j-1 )*m+i ) = aimag( a( i, j ) )
169 CALL sgemm(
'N',
'N', m, n, n, one, rwork, m, b, ldb, zero,
173 c( i, j ) = cmplx( real( c( i, j ) ),
174 $ rwork( l+( j-1 )*m+i-1 ) )
subroutine sgemm(transa, transb, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc)
SGEMM
subroutine clacrm(m, n, a, lda, b, ldb, c, ldc, rwork)
CLACRM multiplies a complex matrix by a square real matrix.