56 SUBROUTINE cerrls( PATH, NUNIT )
72 parameter ( nmax = 2 )
81 REAL RW( nmax ), S( nmax )
82 COMPLEX A( nmax, nmax ), B( nmax, nmax ), W( nmax )
97 COMMON / infoc / infot, nout, ok, lerr
98 COMMON / srnamc / srnamt
104 a( 1, 1 ) = ( 1.0e+0, 0.0e+0 )
105 a( 1, 2 ) = ( 2.0e+0, 0.0e+0 )
106 a( 2, 2 ) = ( 3.0e+0, 0.0e+0 )
107 a( 2, 1 ) = ( 4.0e+0, 0.0e+0 )
109 WRITE( nout, fmt = * )
113 IF( lsamen( 2, c2,
'LS' ) )
THEN
119 CALL cgels(
'/', 0, 0, 0, a, 1, b, 1, w, 1, info )
120 CALL chkxer(
'CGELS ', infot, nout, lerr, ok )
122 CALL cgels(
'N', -1, 0, 0, a, 1, b, 1, w, 1, info )
123 CALL chkxer(
'CGELS ', infot, nout, lerr, ok )
125 CALL cgels(
'N', 0, -1, 0, a, 1, b, 1, w, 1, info )
126 CALL chkxer(
'CGELS ', infot, nout, lerr, ok )
128 CALL cgels(
'N', 0, 0, -1, a, 1, b, 1, w, 1, info )
129 CALL chkxer(
'CGELS ', infot, nout, lerr, ok )
131 CALL cgels(
'N', 2, 0, 0, a, 1, b, 2, w, 2, info )
132 CALL chkxer(
'CGELS ', infot, nout, lerr, ok )
134 CALL cgels(
'N', 2, 0, 0, a, 2, b, 1, w, 2, info )
135 CALL chkxer(
'CGELS ', infot, nout, lerr, ok )
137 CALL cgels(
'N', 1, 1, 0, a, 1, b, 1, w, 1, info )
138 CALL chkxer(
'CGELS ', infot, nout, lerr, ok )
144 CALL cgelss( -1, 0, 0, a, 1, b, 1, s, rcond, irnk, w, 1, rw,
146 CALL chkxer(
'CGELSS', infot, nout, lerr, ok )
148 CALL cgelss( 0, -1, 0, a, 1, b, 1, s, rcond, irnk, w, 1, rw,
150 CALL chkxer(
'CGELSS', infot, nout, lerr, ok )
152 CALL cgelss( 0, 0, -1, a, 1, b, 1, s, rcond, irnk, w, 1, rw,
154 CALL chkxer(
'CGELSS', infot, nout, lerr, ok )
156 CALL cgelss( 2, 0, 0, a, 1, b, 2, s, rcond, irnk, w, 2, rw,
158 CALL chkxer(
'CGELSS', infot, nout, lerr, ok )
160 CALL cgelss( 2, 0, 0, a, 2, b, 1, s, rcond, irnk, w, 2, rw,
162 CALL chkxer(
'CGELSS', infot, nout, lerr, ok )
168 CALL cgelsy( -1, 0, 0, a, 1, b, 1, ip, rcond, irnk, w, 10, rw,
170 CALL chkxer(
'CGELSY', infot, nout, lerr, ok )
172 CALL cgelsy( 0, -1, 0, a, 1, b, 1, ip, rcond, irnk, w, 10, rw,
174 CALL chkxer(
'CGELSY', infot, nout, lerr, ok )
176 CALL cgelsy( 0, 0, -1, a, 1, b, 1, ip, rcond, irnk, w, 10, rw,
178 CALL chkxer(
'CGELSY', infot, nout, lerr, ok )
180 CALL cgelsy( 2, 0, 0, a, 1, b, 2, ip, rcond, irnk, w, 10, rw,
182 CALL chkxer(
'CGELSY', infot, nout, lerr, ok )
184 CALL cgelsy( 2, 0, 0, a, 2, b, 1, ip, rcond, irnk, w, 10, rw,
186 CALL chkxer(
'CGELSY', infot, nout, lerr, ok )
188 CALL cgelsy( 0, 3, 0, a, 1, b, 3, ip, rcond, irnk, w, 1, rw,
190 CALL chkxer(
'CGELSY', infot, nout, lerr, ok )
196 CALL cgelsd( -1, 0, 0, a, 1, b, 1, s, rcond, irnk, w, 10,
198 CALL chkxer(
'CGELSD', infot, nout, lerr, ok )
200 CALL cgelsd( 0, -1, 0, a, 1, b, 1, s, rcond, irnk, w, 10,
202 CALL chkxer(
'CGELSD', infot, nout, lerr, ok )
204 CALL cgelsd( 0, 0, -1, a, 1, b, 1, s, rcond, irnk, w, 10,
206 CALL chkxer(
'CGELSD', infot, nout, lerr, ok )
208 CALL cgelsd( 2, 0, 0, a, 1, b, 2, s, rcond, irnk, w, 10,
210 CALL chkxer(
'CGELSD', infot, nout, lerr, ok )
212 CALL cgelsd( 2, 0, 0, a, 2, b, 1, s, rcond, irnk, w, 10,
214 CALL chkxer(
'CGELSD', infot, nout, lerr, ok )
216 CALL cgelsd( 2, 2, 1, a, 2, b, 2, s, rcond, irnk, w, 1,
218 CALL chkxer(
'CGELSD', infot, nout, lerr, ok )
223 CALL alaesm( path, ok, nout )
subroutine alaesm(PATH, OK, NOUT)
ALAESM
subroutine chkxer(SRNAMT, INFOT, NOUT, LERR, OK)
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 cgels(TRANS, M, N, NRHS, A, LDA, B, LDB, WORK, LWORK, INFO)
CGELS solves overdetermined or underdetermined systems for GE matrices
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 cerrls(PATH, NUNIT)
CERRLS