74 DOUBLE PRECISION RCOND
78 DOUBLE PRECISION RW( NMAX ), S( NMAX )
79 COMPLEX*16 A( NMAX, NMAX ), B( NMAX, NMAX ), W( NMAX )
95 COMMON / infoc / infot, nout, ok, lerr
96 COMMON / srnamc / srnamt
102 a( 1, 1 ) = ( 1.0d+0, 0.0d+0 )
103 a( 1, 2 ) = ( 2.0d+0, 0.0d+0 )
104 a( 2, 2 ) = ( 3.0d+0, 0.0d+0 )
105 a( 2, 1 ) = ( 4.0d+0, 0.0d+0 )
107 WRITE( nout, fmt = * )
111 IF( lsamen( 2, c2,
'LS' ) )
THEN
117 CALL zgels(
'/', 0, 0, 0, a, 1, b, 1, w, 1, info )
118 CALL chkxer(
'ZGELS ', infot, nout, lerr, ok )
120 CALL zgels(
'N', -1, 0, 0, a, 1, b, 1, w, 1, info )
121 CALL chkxer(
'ZGELS ', infot, nout, lerr, ok )
123 CALL zgels(
'N', 0, -1, 0, a, 1, b, 1, w, 1, info )
124 CALL chkxer(
'ZGELS ', infot, nout, lerr, ok )
126 CALL zgels(
'N', 0, 0, -1, a, 1, b, 1, w, 1, info )
127 CALL chkxer(
'ZGELS ', infot, nout, lerr, ok )
129 CALL zgels(
'N', 2, 0, 0, a, 1, b, 2, w, 2, info )
130 CALL chkxer(
'ZGELS ', infot, nout, lerr, ok )
132 CALL zgels(
'N', 2, 0, 0, a, 2, b, 1, w, 2, info )
133 CALL chkxer(
'ZGELS ', infot, nout, lerr, ok )
135 CALL zgels(
'N', 0, 2, 0, a, 1, b, 1, w, 2, info )
136 CALL chkxer(
'ZGELS', infot, nout, lerr, ok )
138 CALL zgels(
'N', 1, 1, 0, a, 1, b, 1, w, 1, info )
139 CALL chkxer(
'ZGELS ', infot, nout, lerr, ok )
145 CALL zgelst(
'/', 0, 0, 0, a, 1, b, 1, w, 1, info )
146 CALL chkxer(
'ZGELST', infot, nout, lerr, ok )
148 CALL zgelst(
'N', -1, 0, 0, a, 1, b, 1, w, 1, info )
149 CALL chkxer(
'ZGELST', infot, nout, lerr, ok )
151 CALL zgelst(
'N', 0, -1, 0, a, 1, b, 1, w, 1, info )
152 CALL chkxer(
'ZGELST', infot, nout, lerr, ok )
154 CALL zgelst(
'N', 0, 0, -1, a, 1, b, 1, w, 1, info )
155 CALL chkxer(
'ZGELST', infot, nout, lerr, ok )
157 CALL zgelst(
'N', 2, 0, 0, a, 1, b, 2, w, 2, info )
158 CALL chkxer(
'ZGELST', infot, nout, lerr, ok )
160 CALL zgelst(
'N', 2, 0, 0, a, 2, b, 1, w, 2, info )
161 CALL chkxer(
'ZGELST', infot, nout, lerr, ok )
163 CALL zgelst(
'N', 0, 2, 0, a, 1, b, 1, w, 2, info )
164 CALL chkxer(
'ZGELST', infot, nout, lerr, ok )
166 CALL zgelst(
'N', 1, 1, 0, a, 1, b, 1, w, 1, info )
167 CALL chkxer(
'ZGELST', infot, nout, lerr, ok )
173 CALL zgetsls(
'/', 0, 0, 0, a, 1, b, 1, w, 1, info )
174 CALL chkxer(
'ZGETSLS', infot, nout, lerr, ok )
176 CALL zgetsls(
'N', -1, 0, 0, a, 1, b, 1, w, 1, info )
177 CALL chkxer(
'ZGETSLS', infot, nout, lerr, ok )
179 CALL zgetsls(
'N', 0, -1, 0, a, 1, b, 1, w, 1, info )
180 CALL chkxer(
'ZGETSLS', infot, nout, lerr, ok )
182 CALL zgetsls(
'N', 0, 0, -1, a, 1, b, 1, w, 1, info )
183 CALL chkxer(
'ZGETSLS', infot, nout, lerr, ok )
185 CALL zgetsls(
'N', 2, 0, 0, a, 1, b, 2, w, 2, info )
186 CALL chkxer(
'ZGETSLS', infot, nout, lerr, ok )
188 CALL zgetsls(
'N', 2, 0, 0, a, 2, b, 1, w, 2, info )
189 CALL chkxer(
'ZGETSLS', infot, nout, lerr, ok )
191 CALL zgetsls(
'N', 0, 2, 0, a, 1, b, 1, w, 2, info )
192 CALL chkxer(
'ZGETSLS', infot, nout, lerr, ok )
198 CALL zgelss( -1, 0, 0, a, 1, b, 1, s, rcond, irnk, w, 1, rw,
200 CALL chkxer(
'ZGELSS', infot, nout, lerr, ok )
202 CALL zgelss( 0, -1, 0, a, 1, b, 1, s, rcond, irnk, w, 1, rw,
204 CALL chkxer(
'ZGELSS', infot, nout, lerr, ok )
206 CALL zgelss( 0, 0, -1, a, 1, b, 1, s, rcond, irnk, w, 1, rw,
208 CALL chkxer(
'ZGELSS', infot, nout, lerr, ok )
210 CALL zgelss( 2, 0, 0, a, 1, b, 2, s, rcond, irnk, w, 2, rw,
212 CALL chkxer(
'ZGELSS', infot, nout, lerr, ok )
214 CALL zgelss( 2, 0, 0, a, 2, b, 1, s, rcond, irnk, w, 2, rw,
216 CALL chkxer(
'ZGELSS', infot, nout, lerr, ok )
222 CALL zgelsy( -1, 0, 0, a, 1, b, 1, ip, rcond, irnk, w, 10, rw,
224 CALL chkxer(
'ZGELSY', infot, nout, lerr, ok )
226 CALL zgelsy( 0, -1, 0, a, 1, b, 1, ip, rcond, irnk, w, 10, rw,
228 CALL chkxer(
'ZGELSY', infot, nout, lerr, ok )
230 CALL zgelsy( 0, 0, -1, a, 1, b, 1, ip, rcond, irnk, w, 10, rw,
232 CALL chkxer(
'ZGELSY', infot, nout, lerr, ok )
234 CALL zgelsy( 2, 0, 0, a, 1, b, 2, ip, rcond, irnk, w, 10, rw,
236 CALL chkxer(
'ZGELSY', infot, nout, lerr, ok )
238 CALL zgelsy( 2, 0, 0, a, 2, b, 1, ip, rcond, irnk, w, 10, rw,
240 CALL chkxer(
'ZGELSY', infot, nout, lerr, ok )
242 CALL zgelsy( 0, 3, 0, a, 1, b, 3, ip, rcond, irnk, w, 1, rw,
244 CALL chkxer(
'ZGELSY', infot, nout, lerr, ok )
250 CALL zgelsd( -1, 0, 0, a, 1, b, 1, s, rcond, irnk, w, 10, rw,
252 CALL chkxer(
'ZGELSD', infot, nout, lerr, ok )
254 CALL zgelsd( 0, -1, 0, a, 1, b, 1, s, rcond, irnk, w, 10, rw,
256 CALL chkxer(
'ZGELSD', infot, nout, lerr, ok )
258 CALL zgelsd( 0, 0, -1, a, 1, b, 1, s, rcond, irnk, w, 10, rw,
260 CALL chkxer(
'ZGELSD', infot, nout, lerr, ok )
262 CALL zgelsd( 2, 0, 0, a, 1, b, 2, s, rcond, irnk, w, 10, rw,
264 CALL chkxer(
'ZGELSD', infot, nout, lerr, ok )
266 CALL zgelsd( 2, 0, 0, a, 2, b, 1, s, rcond, irnk, w, 10, rw,
268 CALL chkxer(
'ZGELSD', infot, nout, lerr, ok )
270 CALL zgelsd( 2, 2, 1, a, 2, b, 2, s, rcond, irnk, w, 1, rw, ip,
272 CALL chkxer(
'ZGELSD', infot, nout, lerr, ok )
277 CALL alaesm( path, ok, nout )
subroutine alaesm(path, ok, nout)
ALAESM
subroutine chkxer(srnamt, infot, nout, lerr, ok)
subroutine zgels(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info)
ZGELS solves overdetermined or underdetermined systems for GE matrices
subroutine zgelsd(m, n, nrhs, a, lda, b, ldb, s, rcond, rank, work, lwork, rwork, iwork, info)
ZGELSD computes the minimum-norm solution to a linear least squares problem for GE matrices
subroutine zgelss(m, n, nrhs, a, lda, b, ldb, s, rcond, rank, work, lwork, rwork, info)
ZGELSS solves overdetermined or underdetermined systems for GE matrices
subroutine zgelst(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info)
ZGELST solves overdetermined or underdetermined systems for GE matrices using QR or LQ factorization ...
subroutine zgelsy(m, n, nrhs, a, lda, b, ldb, jpvt, rcond, rank, work, lwork, rwork, info)
ZGELSY solves overdetermined or underdetermined systems for GE matrices
subroutine zgetsls(trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info)
ZGETSLS
subroutine zerrls(path, nunit)
ZERRLS