72 parameter ( nmax = 2 )
77 DOUBLE PRECISION rcond
81 DOUBLE PRECISION 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 dgels(
'/', 0, 0, 0, a, 1, b, 1, w, 1, info )
120 CALL chkxer(
'DGELS ', infot, nout, lerr, ok )
122 CALL dgels(
'N', -1, 0, 0, a, 1, b, 1, w, 1, info )
123 CALL chkxer(
'DGELS ', infot, nout, lerr, ok )
125 CALL dgels(
'N', 0, -1, 0, a, 1, b, 1, w, 1, info )
126 CALL chkxer(
'DGELS ', infot, nout, lerr, ok )
128 CALL dgels(
'N', 0, 0, -1, a, 1, b, 1, w, 1, info )
129 CALL chkxer(
'DGELS ', infot, nout, lerr, ok )
131 CALL dgels(
'N', 2, 0, 0, a, 1, b, 2, w, 2, info )
132 CALL chkxer(
'DGELS ', infot, nout, lerr, ok )
134 CALL dgels(
'N', 2, 0, 0, a, 2, b, 1, w, 2, info )
135 CALL chkxer(
'DGELS ', infot, nout, lerr, ok )
137 CALL dgels(
'N', 1, 1, 0, a, 1, b, 1, w, 1, info )
138 CALL chkxer(
'DGELS ', infot, nout, lerr, ok )
144 CALL dgelss( -1, 0, 0, a, 1, b, 1, s, rcond, irnk, w, 1, info )
145 CALL chkxer(
'DGELSS', infot, nout, lerr, ok )
147 CALL dgelss( 0, -1, 0, a, 1, b, 1, s, rcond, irnk, w, 1, info )
148 CALL chkxer(
'DGELSS', infot, nout, lerr, ok )
150 CALL dgelss( 0, 0, -1, a, 1, b, 1, s, rcond, irnk, w, 1, info )
151 CALL chkxer(
'DGELSS', infot, nout, lerr, ok )
153 CALL dgelss( 2, 0, 0, a, 1, b, 2, s, rcond, irnk, w, 2, info )
154 CALL chkxer(
'DGELSS', infot, nout, lerr, ok )
156 CALL dgelss( 2, 0, 0, a, 2, b, 1, s, rcond, irnk, w, 2, info )
157 CALL chkxer(
'DGELSS', infot, nout, lerr, ok )
163 CALL dgelsy( -1, 0, 0, a, 1, b, 1, ip, rcond, irnk, w, 10,
165 CALL chkxer(
'DGELSY', infot, nout, lerr, ok )
167 CALL dgelsy( 0, -1, 0, a, 1, b, 1, ip, rcond, irnk, w, 10,
169 CALL chkxer(
'DGELSY', infot, nout, lerr, ok )
171 CALL dgelsy( 0, 0, -1, a, 1, b, 1, ip, rcond, irnk, w, 10,
173 CALL chkxer(
'DGELSY', infot, nout, lerr, ok )
175 CALL dgelsy( 2, 0, 0, a, 1, b, 2, ip, rcond, irnk, w, 10,
177 CALL chkxer(
'DGELSY', infot, nout, lerr, ok )
179 CALL dgelsy( 2, 0, 0, a, 2, b, 1, ip, rcond, irnk, w, 10,
181 CALL chkxer(
'DGELSY', infot, nout, lerr, ok )
183 CALL dgelsy( 2, 2, 1, a, 2, b, 2, ip, rcond, irnk, w, 1, info )
184 CALL chkxer(
'DGELSY', infot, nout, lerr, ok )
190 CALL dgelsd( -1, 0, 0, a, 1, b, 1, s, rcond, irnk, w, 10, ip,
192 CALL chkxer(
'DGELSD', infot, nout, lerr, ok )
194 CALL dgelsd( 0, -1, 0, a, 1, b, 1, s, rcond, irnk, w, 10, ip,
196 CALL chkxer(
'DGELSD', infot, nout, lerr, ok )
198 CALL dgelsd( 0, 0, -1, a, 1, b, 1, s, rcond, irnk, w, 10, ip,
200 CALL chkxer(
'DGELSD', infot, nout, lerr, ok )
202 CALL dgelsd( 2, 0, 0, a, 1, b, 2, s, rcond, irnk, w, 10, ip,
204 CALL chkxer(
'DGELSD', infot, nout, lerr, ok )
206 CALL dgelsd( 2, 0, 0, a, 2, b, 1, s, rcond, irnk, w, 10, ip,
208 CALL chkxer(
'DGELSD', infot, nout, lerr, ok )
210 CALL dgelsd( 2, 2, 1, a, 2, b, 2, s, rcond, irnk, w, 1, ip,
212 CALL chkxer(
'DGELSD', infot, nout, lerr, ok )
217 CALL alaesm( path, ok, nout )
logical function lsamen(N, CA, CB)
LSAMEN
subroutine alaesm(PATH, OK, NOUT)
ALAESM
subroutine dgelsd(M, N, NRHS, A, LDA, B, LDB, S, RCOND, RANK, WORK, LWORK, IWORK, INFO)
DGELSD computes the minimum-norm solution to a linear least squares problem for GE matrices ...
subroutine chkxer(SRNAMT, INFOT, NOUT, LERR, OK)
subroutine dgelss(M, N, NRHS, A, LDA, B, LDB, S, RCOND, RANK, WORK, LWORK, INFO)
DGELSS solves overdetermined or underdetermined systems for GE matrices
subroutine dgels(TRANS, M, N, NRHS, A, LDA, B, LDB, WORK, LWORK, INFO)
DGELS solves overdetermined or underdetermined systems for GE matrices
subroutine dgelsy(M, N, NRHS, A, LDA, B, LDB, JPVT, RCOND, RANK, WORK, LWORK, INFO)
DGELSY solves overdetermined or underdetermined systems for GE matrices