153 SUBROUTINE clsets( M, P, N, A, AF, LDA, B, BF, LDB, C, CF,
154 $ D, DF, X, WORK, LWORK, RWORK, RESULT )
161 INTEGER LDA, LDB, LWORK, M, P, N
164 REAL RESULT( 2 ), RWORK( * )
165 COMPLEX A( LDA, * ), AF( LDA, * ), B( LDB, * ),
166 $ bf( ldb, * ), c( * ), d( * ), cf( * ),
167 $ df( * ), work( lwork ), x( * )
183 CALL clacpy(
'Full', m, n, a, lda, af, lda )
184 CALL clacpy(
'Full', p, n, b, ldb, bf, ldb )
185 CALL ccopy( m, c, 1, cf, 1 )
186 CALL ccopy( p, d, 1, df, 1 )
190 CALL cgglse( m, n, p, af, lda, bf, ldb, cf, df, x,
191 $ work, lwork, info )
197 CALL ccopy( m, c, 1, cf, 1 )
198 CALL ccopy( p, d, 1, df, 1 )
199 CALL cget02(
'No transpose', m, n, 1, a, lda, x, n, cf, m,
200 $ rwork, result( 1 ) )
204 CALL cget02(
'No transpose', p, n, 1, b, ldb, x, n, df, p,
205 $ rwork, result( 2 ) )
subroutine cget02(trans, m, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
CGET02
subroutine clsets(m, p, n, a, af, lda, b, bf, ldb, c, cf, d, df, x, work, lwork, rwork, result)
CLSETS
subroutine ccopy(n, cx, incx, cy, incy)
CCOPY
subroutine cgglse(m, n, p, a, lda, b, ldb, c, d, x, work, lwork, info)
CGGLSE solves overdetermined or underdetermined systems for OTHER matrices
subroutine clacpy(uplo, m, n, a, lda, b, ldb)
CLACPY copies all or part of one two-dimensional array to another.