72 parameter ( nmax = 2 )
81 REAL a( nmax, nmax ), b( nmax, nmax ), s( nmax ),
97 COMMON / infoc / infot, nout, ok, lerr
98 COMMON / srnamc / srnamt
103 WRITE( nout, fmt = * )
111 IF(
lsamen( 2, c2,
'LS' ) )
THEN
119 CALL sgels(
'/', 0, 0, 0, a, 1, b, 1, w, 1, info )
120 CALL chkxer(
'SGELS ', infot, nout, lerr, ok )
122 CALL sgels(
'N', -1, 0, 0, a, 1, b, 1, w, 1, info )
123 CALL chkxer(
'SGELS ', infot, nout, lerr, ok )
125 CALL sgels(
'N', 0, -1, 0, a, 1, b, 1, w, 1, info )
126 CALL chkxer(
'SGELS ', infot, nout, lerr, ok )
128 CALL sgels(
'N', 0, 0, -1, a, 1, b, 1, w, 1, info )
129 CALL chkxer(
'SGELS ', infot, nout, lerr, ok )
131 CALL sgels(
'N', 2, 0, 0, a, 1, b, 2, w, 2, info )
132 CALL chkxer(
'SGELS ', infot, nout, lerr, ok )
134 CALL sgels(
'N', 2, 0, 0, a, 2, b, 1, w, 2, info )
135 CALL chkxer(
'SGELS ', infot, nout, lerr, ok )
137 CALL sgels(
'N', 1, 1, 0, a, 1, b, 1, w, 1, info )
138 CALL chkxer(
'SGELS ', infot, nout, lerr, ok )
144 CALL sgelss( -1, 0, 0, a, 1, b, 1, s, rcond, irnk, w, 1, info )
145 CALL chkxer(
'SGELSS', infot, nout, lerr, ok )
147 CALL sgelss( 0, -1, 0, a, 1, b, 1, s, rcond, irnk, w, 1, info )
148 CALL chkxer(
'SGELSS', infot, nout, lerr, ok )
150 CALL sgelss( 0, 0, -1, a, 1, b, 1, s, rcond, irnk, w, 1, info )
151 CALL chkxer(
'SGELSS', infot, nout, lerr, ok )
153 CALL sgelss( 2, 0, 0, a, 1, b, 2, s, rcond, irnk, w, 2, info )
154 CALL chkxer(
'SGELSS', infot, nout, lerr, ok )
156 CALL sgelss( 2, 0, 0, a, 2, b, 1, s, rcond, irnk, w, 2, info )
157 CALL chkxer(
'SGELSS', infot, nout, lerr, ok )
163 CALL sgelsy( -1, 0, 0, a, 1, b, 1, ip, rcond, irnk, w, 10,
165 CALL chkxer(
'SGELSY', infot, nout, lerr, ok )
167 CALL sgelsy( 0, -1, 0, a, 1, b, 1, ip, rcond, irnk, w, 10,
169 CALL chkxer(
'SGELSY', infot, nout, lerr, ok )
171 CALL sgelsy( 0, 0, -1, a, 1, b, 1, ip, rcond, irnk, w, 10,
173 CALL chkxer(
'SGELSY', infot, nout, lerr, ok )
175 CALL sgelsy( 2, 0, 0, a, 1, b, 2, ip, rcond, irnk, w, 10,
177 CALL chkxer(
'SGELSY', infot, nout, lerr, ok )
179 CALL sgelsy( 2, 0, 0, a, 2, b, 1, ip, rcond, irnk, w, 10,
181 CALL chkxer(
'SGELSY', infot, nout, lerr, ok )
183 CALL sgelsy( 2, 2, 1, a, 2, b, 2, ip, rcond, irnk, w, 1, info )
184 CALL chkxer(
'SGELSY', infot, nout, lerr, ok )
190 CALL sgelsd( -1, 0, 0, a, 1, b, 1, s, rcond, irnk, w, 10,
192 CALL chkxer(
'SGELSD', infot, nout, lerr, ok )
194 CALL sgelsd( 0, -1, 0, a, 1, b, 1, s, rcond, irnk, w, 10,
196 CALL chkxer(
'SGELSD', infot, nout, lerr, ok )
198 CALL sgelsd( 0, 0, -1, a, 1, b, 1, s, rcond, irnk, w, 10,
200 CALL chkxer(
'SGELSD', infot, nout, lerr, ok )
202 CALL sgelsd( 2, 0, 0, a, 1, b, 2, s, rcond, irnk, w, 10,
204 CALL chkxer(
'SGELSD', infot, nout, lerr, ok )
206 CALL sgelsd( 2, 0, 0, a, 2, b, 1, s, rcond, irnk, w, 10,
208 CALL chkxer(
'SGELSD', infot, nout, lerr, ok )
210 CALL sgelsd( 2, 2, 1, a, 2, b, 2, s, rcond, irnk, w, 1, ip,
212 CALL chkxer(
'SGELSD', infot, nout, lerr, ok )
217 CALL alaesm( path, ok, nout )
logical function lsamen(N, CA, CB)
LSAMEN
subroutine sgelsd(M, N, NRHS, A, LDA, B, LDB, S, RCOND, RANK, WORK, LWORK, IWORK, INFO)
SGELSD computes the minimum-norm solution to a linear least squares problem for GE matrices ...
subroutine alaesm(PATH, OK, NOUT)
ALAESM
subroutine chkxer(SRNAMT, INFOT, NOUT, LERR, OK)
subroutine sgels(TRANS, M, N, NRHS, A, LDA, B, LDB, WORK, LWORK, INFO)
SGELS solves overdetermined or underdetermined systems for GE matrices
subroutine sgelsy(M, N, NRHS, A, LDA, B, LDB, JPVT, RCOND, RANK, WORK, LWORK, INFO)
SGELSY solves overdetermined or underdetermined systems for GE matrices
subroutine sgelss(M, N, NRHS, A, LDA, B, LDB, S, RCOND, RANK, WORK, LWORK, INFO)
SGELSS solves overdetermined or underdetermined systems for GE matrices