153 SUBROUTINE slsets( 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 A( LDA, * ), AF( LDA, * ), B( LDB, * ),
165 $ bf( ldb, * ), result( 2 ), rwork( * ),
166 $ c( * ), d( * ), cf( * ), df( * ),
167 $ work( lwork ), x( * )
183 CALL slacpy(
'Full', m, n, a, lda, af, lda )
184 CALL slacpy(
'Full', p, n, b, ldb, bf, ldb )
185 CALL scopy( m, c, 1, cf, 1 )
186 CALL scopy( p, d, 1, df, 1 )
190 CALL sgglse( m, n, p, af, lda, bf, ldb, cf, df, x,
191 $ work, lwork, info )
197 CALL scopy( m, c, 1, cf, 1 )
198 CALL scopy( p, d, 1, df, 1 )
199 CALL sget02(
'No transpose', m, n, 1, a, lda, x, n, cf, m,
200 $ rwork, result( 1 ) )
204 CALL sget02(
'No transpose', p, n, 1, b, ldb, x, n, df, p,
205 $ rwork, result( 2 ) )
subroutine sget02(trans, m, n, nrhs, a, lda, x, ldx, b, ldb, rwork, resid)
SGET02
subroutine scopy(n, sx, incx, sy, incy)
SCOPY
subroutine sgglse(m, n, p, a, lda, b, ldb, c, d, x, work, lwork, info)
SGGLSE solves overdetermined or underdetermined systems for OTHER matrices
subroutine slacpy(uplo, m, n, a, lda, b, ldb)
SLACPY copies all or part of one two-dimensional array to another.
subroutine slsets(m, p, n, a, af, lda, b, bf, ldb, c, cf, d, df, x, work, lwork, rwork, result)
SLSETS