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