/home/abui.../dgetsls.f(3)
π¦ NAME π¦
okay so this is the Library Functions Manual page, and the header points at /home/abui.../dgetsls.f(3). The NAME section is literally this file path:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/dgetsls.f
slay, thatβs the whole NAME vibe π
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines πΈ
subroutine DGETSLS (trans, m, n, nrhs, a, lda, b, ldb, work, lwork, info)DGETSLS
π Function/Subroutine Documentation π
subroutine DGETSLS (character trans, integer m, integer n, integer nrhs, double precision, dimension( lda, * ) a, integer lda, double precision, dimension( ldb, * ) b, integer ldb, double precision, dimension( * ) work, integer lwork, integer info)
DGETSLS is the main character here, no cap π
π Purpose π
DGETSLS solves overdetermined or underdetermined real linear systems involving an M-by-N matrix A, using a tall skinny QR or short wide LQ factorization of A. It is assumed that A has full rank.
The following options are provided:
- If
TRANS = 'N'andm >= n: find the least squares solution of an overdetermined system, i.e., solve the least squares problem:
minimize || B - A*X ||.
- If
TRANS = 'N'andm < n: find the minimum norm solution of an underdetermined systemA * X = B. - If
TRANS = 'T'andm >= n: find the minimum norm solution of an undetermined systemA**T * X = B. - If
TRANS = 'T'andm < n: find the least squares solution of an overdetermined system, i.e., solve the least squares problem:
minimize || B - A**T * X ||.
Several right hand side vectors b and solution vectors x can be handled in a single call; they are stored as the columns of the M-by-NRHS right hand side matrix B and the N-by-NRHS solution matrix X.
π₯ Parameters π₯
TRANSβTRANS is CHARACTER*1= 'N': the linear system involves A;= 'T': the linear system involves A**T.
MβM is INTEGER- The number of rows of the matrix
A.M >= 0.
- The number of rows of the matrix
NβN is INTEGER- The number of columns of the matrix
A.N >= 0.
- The number of columns of the matrix
NRHSβNRHS is INTEGER- The number of right hand sides, i.e., the number of columns of the matrices
BandX.NRHS >=0.
- The number of right hand sides, i.e., the number of columns of the matrices
AβA is DOUBLE PRECISION array, dimension (LDA,N)- On entry, the
M-by-NmatrixA. - On exit,
Ais overwritten by details of its QR or LQ factorization as returned byDGEQRorDGELQ.
- On entry, the
LDAβLDA is INTEGER- The leading dimension of the array
A.LDA >= max(1,M).
- The leading dimension of the array
BβB is DOUBLE PRECISION array, dimension (LDB,NRHS)- On entry, the matrix
Bof right hand side vectors, stored columnwise;BisM-by-NRHSifTRANS = 'N', orN-by-NRHSifTRANS = 'T'. - On exit, if
INFO = 0,Bis overwritten by the solution vectors, stored columnwise:- if
TRANS = 'N'andm >= n, rows1tonofBcontain the least squares solution vectors. - if
TRANS = 'N'andm < n, rows1toNofBcontain the minimum norm solution vectors; - if
TRANS = 'T'andm >= n, rows1toMofBcontain the minimum norm solution vectors; - if
TRANS = 'T'andm < n, rows1toMofBcontain the least squares solution vectors.
- if
- On entry, the matrix
LDBβLDB is INTEGER- The leading dimension of the array
B.LDB >= MAX(1,M,N).
- The leading dimension of the array
WORKβ(workspace) DOUBLE PRECISION array, dimension (MAX(1,LWORK))- On exit, if
INFO = 0,WORK(1)contains optimal (or either minimal or optimal, if query was assumed)LWORK. - See
LWORKfor details.
- On exit, if
LWORKβLWORK is INTEGER- The dimension of the array
WORK. - If
LWORK = -1or-2, then a workspace query is assumed. - If
LWORK = -1, the routine calculates optimal size ofWORKfor the optimal performance and returns this value inWORK(1). - If
LWORK = -2, the routine calculates minimal size ofWORKand returns this value inWORK(1).
- The dimension of the array
INFOβINFO is INTEGER= 0: successful exit< 0: if INFO = -i, the i-th argument had an illegal value> 0: if INFO = i, the i-th diagonal element of the triangular factor of A is zero, so that A does not have full rank; the least squares solution could not be computed.
πΈ Author πΈ
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 160 of file dgetsls.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
later bestie! This page is brought to you by LAPACK Version 3.12.0 and /home/abui.../dgetsls.f(3) πβ¨π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms